databricks.getVolume
Explore with Pulumi AI
Retrieves details about databricks.Volume that was created by Pulumi or manually.
A volume can be identified by its three-level (fully qualified) name (in the form of: catalog_name
.schema_name
.volume_name
) as input. This can be retrieved programmatically using databricks.getVolumes data source.
Example Usage
- Retrieve details of all volumes in in a things databricks.Schema of a sandbox databricks_catalog:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const all = databricks.getVolumes({
catalogName: "sandbox",
schemaName: "things",
});
const this = all.then(all => .reduce((__obj, [, ]) => ({ ...__obj, [__key]: databricks.getVolume({
name: __value,
}) })));
import pulumi
import pulumi_databricks as databricks
all = databricks.get_volumes(catalog_name="sandbox",
schema_name="things")
this = {__key: databricks.get_volume(name=__value) for __key, __value in all.ids}
Coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var all = Databricks.GetVolumes.Invoke(new()
{
CatalogName = "sandbox",
SchemaName = "things",
});
var @this = ;
});
Coming soon!
Coming soon!
- Search for a specific volume by its fully qualified name
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const this = databricks.getVolume({
name: "catalog.schema.volume",
});
import pulumi
import pulumi_databricks as databricks
this = databricks.get_volume(name="catalog.schema.volume")
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.LookupVolume(ctx, &databricks.LookupVolumeArgs{
Name: "catalog.schema.volume",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = Databricks.GetVolume.Invoke(new()
{
Name = "catalog.schema.volume",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import com.pulumi.databricks.inputs.GetVolumeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var this = DatabricksFunctions.getVolume(GetVolumeArgs.builder()
.name("catalog.schema.volume")
.build());
}
}
variables:
this:
fn::invoke:
Function: databricks:getVolume
Arguments:
name: catalog.schema.volume
Related Resources
The following resources are used in the same context:
- databricks.Volume to manage volumes within Unity Catalog.
- databricks.Schema to manage schemas within Unity Catalog.
- databricks.Catalog to manage catalogs within Unity Catalog.
Using getVolume
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVolume(args: GetVolumeArgs, opts?: InvokeOptions): Promise<GetVolumeResult>
function getVolumeOutput(args: GetVolumeOutputArgs, opts?: InvokeOptions): Output<GetVolumeResult>
def get_volume(id: Optional[str] = None,
name: Optional[str] = None,
volume_info: Optional[GetVolumeVolumeInfo] = None,
opts: Optional[InvokeOptions] = None) -> GetVolumeResult
def get_volume_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
volume_info: Optional[pulumi.Input[GetVolumeVolumeInfoArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVolumeResult]
func LookupVolume(ctx *Context, args *LookupVolumeArgs, opts ...InvokeOption) (*LookupVolumeResult, error)
func LookupVolumeOutput(ctx *Context, args *LookupVolumeOutputArgs, opts ...InvokeOption) LookupVolumeResultOutput
> Note: This function is named LookupVolume
in the Go SDK.
public static class GetVolume
{
public static Task<GetVolumeResult> InvokeAsync(GetVolumeArgs args, InvokeOptions? opts = null)
public static Output<GetVolumeResult> Invoke(GetVolumeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVolumeResult> getVolume(GetVolumeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: databricks:index/getVolume:getVolume
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- Id string
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - Volume
Info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- Name string
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- Id string
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - Volume
Info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- name String
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- id String
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - volume
Info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- name string
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- id string
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - volume
Info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- name str
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- id str
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - volume_
info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- name String
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- id String
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - volume
Info Property Map VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
getVolume Result
The following output properties are available:
- Id string
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - Name string
- the name of the volume
- Volume
Info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- Id string
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - Name string
- the name of the volume
- Volume
Info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- id String
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - name String
- the name of the volume
- volume
Info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- id string
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - name string
- the name of the volume
- volume
Info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- id str
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - name str
- the name of the volume
- volume_
info GetVolume Volume Info VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
- id String
- ID of this Unity Catalog Volume in form of
<catalog>.<schema>.<name>
. - name String
- the name of the volume
- volume
Info Property Map VolumeInfo
object for a Unity Catalog volume. This contains the following attributes:
Supporting Types
GetVolumeVolumeInfo
- Access
Point string - the AWS access point to use when accessing s3 bucket for this volume's external location
- Browse
Only bool - indicates whether the principal is limited to retrieving metadata for the volume through the BROWSE privilege when include_browse is enabled in the request.
- Catalog
Name string - the name of the catalog where the schema and the volume are
- Comment string
- the comment attached to the volume
- Created
At int - the Unix timestamp at the volume's creation
- Created
By string - the identifier of the user who created the volume
- Encryption
Details GetVolume Volume Info Encryption Details - encryption options that apply to clients connecting to cloud storage
- Full
Name string - the three-level (fully qualified) name of the volume
- Metastore
Id string - the unique identifier of the metastore
- Name string
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- Owner string
- the identifier of the user who owns the volume
- Schema
Name string - the name of the schema where the volume is
- Storage
Location string - the storage location on the cloud
- Updated
At int - the timestamp of the last time changes were made to the volume
- Updated
By string - the identifier of the user who updated the volume last time
- Volume
Id string - the unique identifier of the volume
- Volume
Type string - whether the volume is
MANAGED
orEXTERNAL
- Access
Point string - the AWS access point to use when accessing s3 bucket for this volume's external location
- Browse
Only bool - indicates whether the principal is limited to retrieving metadata for the volume through the BROWSE privilege when include_browse is enabled in the request.
- Catalog
Name string - the name of the catalog where the schema and the volume are
- Comment string
- the comment attached to the volume
- Created
At int - the Unix timestamp at the volume's creation
- Created
By string - the identifier of the user who created the volume
- Encryption
Details GetVolume Volume Info Encryption Details - encryption options that apply to clients connecting to cloud storage
- Full
Name string - the three-level (fully qualified) name of the volume
- Metastore
Id string - the unique identifier of the metastore
- Name string
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- Owner string
- the identifier of the user who owns the volume
- Schema
Name string - the name of the schema where the volume is
- Storage
Location string - the storage location on the cloud
- Updated
At int - the timestamp of the last time changes were made to the volume
- Updated
By string - the identifier of the user who updated the volume last time
- Volume
Id string - the unique identifier of the volume
- Volume
Type string - whether the volume is
MANAGED
orEXTERNAL
- access
Point String - the AWS access point to use when accessing s3 bucket for this volume's external location
- browse
Only Boolean - indicates whether the principal is limited to retrieving metadata for the volume through the BROWSE privilege when include_browse is enabled in the request.
- catalog
Name String - the name of the catalog where the schema and the volume are
- comment String
- the comment attached to the volume
- created
At Integer - the Unix timestamp at the volume's creation
- created
By String - the identifier of the user who created the volume
- encryption
Details GetVolume Volume Info Encryption Details - encryption options that apply to clients connecting to cloud storage
- full
Name String - the three-level (fully qualified) name of the volume
- metastore
Id String - the unique identifier of the metastore
- name String
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- owner String
- the identifier of the user who owns the volume
- schema
Name String - the name of the schema where the volume is
- storage
Location String - the storage location on the cloud
- updated
At Integer - the timestamp of the last time changes were made to the volume
- updated
By String - the identifier of the user who updated the volume last time
- volume
Id String - the unique identifier of the volume
- volume
Type String - whether the volume is
MANAGED
orEXTERNAL
- access
Point string - the AWS access point to use when accessing s3 bucket for this volume's external location
- browse
Only boolean - indicates whether the principal is limited to retrieving metadata for the volume through the BROWSE privilege when include_browse is enabled in the request.
- catalog
Name string - the name of the catalog where the schema and the volume are
- comment string
- the comment attached to the volume
- created
At number - the Unix timestamp at the volume's creation
- created
By string - the identifier of the user who created the volume
- encryption
Details GetVolume Volume Info Encryption Details - encryption options that apply to clients connecting to cloud storage
- full
Name string - the three-level (fully qualified) name of the volume
- metastore
Id string - the unique identifier of the metastore
- name string
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- owner string
- the identifier of the user who owns the volume
- schema
Name string - the name of the schema where the volume is
- storage
Location string - the storage location on the cloud
- updated
At number - the timestamp of the last time changes were made to the volume
- updated
By string - the identifier of the user who updated the volume last time
- volume
Id string - the unique identifier of the volume
- volume
Type string - whether the volume is
MANAGED
orEXTERNAL
- access_
point str - the AWS access point to use when accessing s3 bucket for this volume's external location
- browse_
only bool - indicates whether the principal is limited to retrieving metadata for the volume through the BROWSE privilege when include_browse is enabled in the request.
- catalog_
name str - the name of the catalog where the schema and the volume are
- comment str
- the comment attached to the volume
- created_
at int - the Unix timestamp at the volume's creation
- created_
by str - the identifier of the user who created the volume
- encryption_
details GetVolume Volume Info Encryption Details - encryption options that apply to clients connecting to cloud storage
- full_
name str - the three-level (fully qualified) name of the volume
- metastore_
id str - the unique identifier of the metastore
- name str
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- owner str
- the identifier of the user who owns the volume
- schema_
name str - the name of the schema where the volume is
- storage_
location str - the storage location on the cloud
- updated_
at int - the timestamp of the last time changes were made to the volume
- updated_
by str - the identifier of the user who updated the volume last time
- volume_
id str - the unique identifier of the volume
- volume_
type str - whether the volume is
MANAGED
orEXTERNAL
- access
Point String - the AWS access point to use when accessing s3 bucket for this volume's external location
- browse
Only Boolean - indicates whether the principal is limited to retrieving metadata for the volume through the BROWSE privilege when include_browse is enabled in the request.
- catalog
Name String - the name of the catalog where the schema and the volume are
- comment String
- the comment attached to the volume
- created
At Number - the Unix timestamp at the volume's creation
- created
By String - the identifier of the user who created the volume
- encryption
Details Property Map - encryption options that apply to clients connecting to cloud storage
- full
Name String - the three-level (fully qualified) name of the volume
- metastore
Id String - the unique identifier of the metastore
- name String
- a fully qualified name of databricks_volume:
catalog
.schema
.volume
- owner String
- the identifier of the user who owns the volume
- schema
Name String - the name of the schema where the volume is
- storage
Location String - the storage location on the cloud
- updated
At Number - the timestamp of the last time changes were made to the volume
- updated
By String - the identifier of the user who updated the volume last time
- volume
Id String - the unique identifier of the volume
- volume
Type String - whether the volume is
MANAGED
orEXTERNAL
GetVolumeVolumeInfoEncryptionDetails
GetVolumeVolumeInfoEncryptionDetailsSseEncryptionDetails
- Algorithm string
- Aws
Kms stringKey Arn
- Algorithm string
- Aws
Kms stringKey Arn
- algorithm String
- aws
Kms StringKey Arn
- algorithm string
- aws
Kms stringKey Arn
- algorithm str
- aws_
kms_ strkey_ arn
- algorithm String
- aws
Kms StringKey Arn
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.