Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
This data source allows to get information about a directory in a Databricks Workspace.
This data source can only be used with a workspace-level provider!
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const prod = databricks.getDirectory({
path: "/Production",
});
import pulumi
import pulumi_databricks as databricks
prod = databricks.get_directory(path="/Production")
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.LookupDirectory(ctx, &databricks.LookupDirectoryArgs{
Path: "/Production",
}, 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 prod = Databricks.GetDirectory.Invoke(new()
{
Path = "/Production",
});
});
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.GetDirectoryArgs;
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 prod = DatabricksFunctions.getDirectory(GetDirectoryArgs.builder()
.path("/Production")
.build());
}
}
variables:
prod:
fn::invoke:
function: databricks:getDirectory
arguments:
path: /Production
Using getDirectory
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 getDirectory(args: GetDirectoryArgs, opts?: InvokeOptions): Promise<GetDirectoryResult>
function getDirectoryOutput(args: GetDirectoryOutputArgs, opts?: InvokeOptions): Output<GetDirectoryResult>def get_directory(id: Optional[str] = None,
object_id: Optional[int] = None,
path: Optional[str] = None,
provider_config: Optional[GetDirectoryProviderConfig] = None,
workspace_path: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDirectoryResult
def get_directory_output(id: Optional[pulumi.Input[str]] = None,
object_id: Optional[pulumi.Input[int]] = None,
path: Optional[pulumi.Input[str]] = None,
provider_config: Optional[pulumi.Input[GetDirectoryProviderConfigArgs]] = None,
workspace_path: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDirectoryResult]func LookupDirectory(ctx *Context, args *LookupDirectoryArgs, opts ...InvokeOption) (*LookupDirectoryResult, error)
func LookupDirectoryOutput(ctx *Context, args *LookupDirectoryOutputArgs, opts ...InvokeOption) LookupDirectoryResultOutput> Note: This function is named LookupDirectory in the Go SDK.
public static class GetDirectory
{
public static Task<GetDirectoryResult> InvokeAsync(GetDirectoryArgs args, InvokeOptions? opts = null)
public static Output<GetDirectoryResult> Invoke(GetDirectoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDirectoryResult> getDirectory(GetDirectoryArgs args, InvokeOptions options)
public static Output<GetDirectoryResult> getDirectory(GetDirectoryArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getDirectory:getDirectory
arguments:
# arguments dictionaryThe following arguments are supported:
- Path string
- Path to a directory in the workspace
- Id string
- Object
Id int - directory object ID
- Provider
Config GetDirectory Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- Workspace
Path string - path on Workspace File System (WSFS) in form of
/Workspace+path
- Path string
- Path to a directory in the workspace
- Id string
- Object
Id int - directory object ID
- Provider
Config GetDirectory Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- Workspace
Path string - path on Workspace File System (WSFS) in form of
/Workspace+path
- path String
- Path to a directory in the workspace
- id String
- object
Id Integer - directory object ID
- provider
Config GetDirectory Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- workspace
Path String - path on Workspace File System (WSFS) in form of
/Workspace+path
- path string
- Path to a directory in the workspace
- id string
- object
Id number - directory object ID
- provider
Config GetDirectory Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- workspace
Path string - path on Workspace File System (WSFS) in form of
/Workspace+path
- path str
- Path to a directory in the workspace
- id str
- object_
id int - directory object ID
- provider_
config GetDirectory Provider Config - Configure the provider for management through account provider. This block consists of the following fields:
- workspace_
path str - path on Workspace File System (WSFS) in form of
/Workspace+path
- path String
- Path to a directory in the workspace
- id String
- object
Id Number - directory object ID
- provider
Config Property Map - Configure the provider for management through account provider. This block consists of the following fields:
- workspace
Path String - path on Workspace File System (WSFS) in form of
/Workspace+path
getDirectory Result
The following output properties are available:
- Id string
- Object
Id int - directory object ID
- Path string
- Workspace
Path string - path on Workspace File System (WSFS) in form of
/Workspace+path - Provider
Config GetDirectory Provider Config
- Id string
- Object
Id int - directory object ID
- Path string
- Workspace
Path string - path on Workspace File System (WSFS) in form of
/Workspace+path - Provider
Config GetDirectory Provider Config
- id String
- object
Id Integer - directory object ID
- path String
- workspace
Path String - path on Workspace File System (WSFS) in form of
/Workspace+path - provider
Config GetDirectory Provider Config
- id string
- object
Id number - directory object ID
- path string
- workspace
Path string - path on Workspace File System (WSFS) in form of
/Workspace+path - provider
Config GetDirectory Provider Config
- id str
- object_
id int - directory object ID
- path str
- workspace_
path str - path on Workspace File System (WSFS) in form of
/Workspace+path - provider_
config GetDirectory Provider Config
- id String
- object
Id Number - directory object ID
- path String
- workspace
Path String - path on Workspace File System (WSFS) in form of
/Workspace+path - provider
Config Property Map
Supporting Types
GetDirectoryProviderConfig
- Workspace
Id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- Workspace
Id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace
Id String - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace
Id string - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace_
id str - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
- workspace
Id String - Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
Viewing docs for Databricks v1.90.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
