Databricks
getDbfsFilePaths
Related Resources
The following resources are used in the same context:
- End to end workspace management guide
- databricks.DbfsFile data to get file content from Databricks File System (DBFS).
- databricks.getDbfsFilePaths data to get list of file names from get file content from Databricks File System (DBFS).
- databricks.DbfsFile to manage relatively small files on Databricks File System (DBFS).
- databricks.Library to install a library on databricks_cluster.
- databricks.Mount to mount your cloud storage on
dbfs:/mnt/name
.
Example Usage
using Pulumi;
using Databricks = Pulumi.Databricks;
class MyStack : Stack
{
public MyStack()
{
var partitions = Output.Create(Databricks.GetDbfsFilePaths.InvokeAsync(new Databricks.GetDbfsFilePathsArgs
{
Path = "dbfs:/user/hive/default.db/table",
Recursive = false,
}));
}
}
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.GetDbfsFilePaths(ctx, &GetDbfsFilePathsArgs{
Path: "dbfs:/user/hive/default.db/table",
Recursive: false,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_databricks as databricks
partitions = databricks.get_dbfs_file_paths(path="dbfs:/user/hive/default.db/table",
recursive=False)
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const partitions = pulumi.output(databricks.getDbfsFilePaths({
path: "dbfs:/user/hive/default.db/table",
recursive: false,
}));
Coming soon!
Using getDbfsFilePaths
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 getDbfsFilePaths(args: GetDbfsFilePathsArgs, opts?: InvokeOptions): Promise<GetDbfsFilePathsResult>
function getDbfsFilePathsOutput(args: GetDbfsFilePathsOutputArgs, opts?: InvokeOptions): Output<GetDbfsFilePathsResult>
def get_dbfs_file_paths(path: Optional[str] = None,
recursive: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetDbfsFilePathsResult
def get_dbfs_file_paths_output(path: Optional[pulumi.Input[str]] = None,
recursive: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbfsFilePathsResult]
func GetDbfsFilePaths(ctx *Context, args *GetDbfsFilePathsArgs, opts ...InvokeOption) (*GetDbfsFilePathsResult, error)
func GetDbfsFilePathsOutput(ctx *Context, args *GetDbfsFilePathsOutputArgs, opts ...InvokeOption) GetDbfsFilePathsResultOutput
> Note: This function is named GetDbfsFilePaths
in the Go SDK.
public static class GetDbfsFilePaths
{
public static Task<GetDbfsFilePathsResult> InvokeAsync(GetDbfsFilePathsArgs args, InvokeOptions? opts = null)
public static Output<GetDbfsFilePathsResult> Invoke(GetDbfsFilePathsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbfsFilePathsResult> getDbfsFilePaths(GetDbfsFilePathsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: databricks:index/getDbfsFilePaths:getDbfsFilePaths
Arguments:
# Arguments dictionary
The following arguments are supported:
getDbfsFilePaths Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Path string
- Path
Lists List<GetDbfs File Paths Path List> returns list of objects with
path
andfile_size
attributes in each- Recursive bool
- Id string
The provider-assigned unique ID for this managed resource.
- Path string
- Path
Lists []GetDbfs File Paths Path List returns list of objects with
path
andfile_size
attributes in each- Recursive bool
- id String
The provider-assigned unique ID for this managed resource.
- path String
- path
Lists List<GetDbfs File Paths Path List> returns list of objects with
path
andfile_size
attributes in each- recursive Boolean
- id string
The provider-assigned unique ID for this managed resource.
- path string
- path
Lists GetDbfs File Paths Path List[] returns list of objects with
path
andfile_size
attributes in each- recursive boolean
- id str
The provider-assigned unique ID for this managed resource.
- path str
- path_
lists Sequence[GetDbfs File Paths Path List] returns list of objects with
path
andfile_size
attributes in each- recursive bool
- id String
The provider-assigned unique ID for this managed resource.
- path String
- path
Lists List<Property Map> returns list of objects with
path
andfile_size
attributes in each- recursive Boolean
Supporting Types
GetDbfsFilePathsPathList
Package Details
- Repository
- https://github.com/pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
databricks
Terraform Provider.