1. Packages
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. getTables
Viewing docs for Databricks v0.4.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
databricks logo
Viewing docs for Databricks v0.4.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    The following resources are used in the same context:

    • databricks.Table to manage tables within Unity Catalog.
    • databricks.Schema to manage schemas within Unity Catalog.
    • databricks.Catalog to manage catalogs within Unity Catalog.

    Example Usage

    Listing all tables in a

    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var things = Output.Create(Databricks.GetTables.InvokeAsync(new Databricks.GetTablesArgs
            {
                CatalogName = "sandbox",
                SchemaName = "things",
            }));
            this.AllThingsTables = things;
        }
    
        [Output("allThingsTables")]
        public Output<string> AllThingsTables { get; set; }
    }
    
    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 {
    		things, err := databricks.GetTables(ctx, &GetTablesArgs{
    			CatalogName: "sandbox",
    			SchemaName:  "things",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("allThingsTables", things)
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const things = databricks.getTables({
        catalogName: "sandbox",
        schemaName: "things",
    });
    export const allThingsTables = things;
    
    import pulumi
    import pulumi_databricks as databricks
    
    things = databricks.get_tables(catalog_name="sandbox",
        schema_name="things")
    pulumi.export("allThingsTables", things)
    

    Example coming soon!

    Using getTables

    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 getTables(args: GetTablesArgs, opts?: InvokeOptions): Promise<GetTablesResult>
    function getTablesOutput(args: GetTablesOutputArgs, opts?: InvokeOptions): Output<GetTablesResult>
    def get_tables(catalog_name: Optional[str] = None,
                   ids: Optional[Sequence[str]] = None,
                   schema_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetTablesResult
    def get_tables_output(catalog_name: Optional[pulumi.Input[str]] = None,
                   ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   schema_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetTablesResult]
    func GetTables(ctx *Context, args *GetTablesArgs, opts ...InvokeOption) (*GetTablesResult, error)
    func GetTablesOutput(ctx *Context, args *GetTablesOutputArgs, opts ...InvokeOption) GetTablesResultOutput

    > Note: This function is named GetTables in the Go SDK.

    public static class GetTables 
    {
        public static Task<GetTablesResult> InvokeAsync(GetTablesArgs args, InvokeOptions? opts = null)
        public static Output<GetTablesResult> Invoke(GetTablesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTablesResult> getTables(GetTablesArgs args, InvokeOptions options)
    public static Output<GetTablesResult> getTables(GetTablesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: databricks:index/getTables:getTables
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CatalogName string
    Name of databricks_catalog
    SchemaName string
    Name of databricks_schema
    Ids List<string>
    set of databricks.Table full names: catalog.schema.table
    CatalogName string
    Name of databricks_catalog
    SchemaName string
    Name of databricks_schema
    Ids []string
    set of databricks.Table full names: catalog.schema.table
    catalogName String
    Name of databricks_catalog
    schemaName String
    Name of databricks_schema
    ids List<String>
    set of databricks.Table full names: catalog.schema.table
    catalogName string
    Name of databricks_catalog
    schemaName string
    Name of databricks_schema
    ids string[]
    set of databricks.Table full names: catalog.schema.table
    catalog_name str
    Name of databricks_catalog
    schema_name str
    Name of databricks_schema
    ids Sequence[str]
    set of databricks.Table full names: catalog.schema.table
    catalogName String
    Name of databricks_catalog
    schemaName String
    Name of databricks_schema
    ids List<String>
    set of databricks.Table full names: catalog.schema.table

    getTables Result

    The following output properties are available:

    CatalogName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    set of databricks.Table full names: catalog.schema.table
    SchemaName string
    CatalogName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    set of databricks.Table full names: catalog.schema.table
    SchemaName string
    catalogName String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    set of databricks.Table full names: catalog.schema.table
    schemaName String
    catalogName string
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    set of databricks.Table full names: catalog.schema.table
    schemaName string
    catalog_name str
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    set of databricks.Table full names: catalog.schema.table
    schema_name str
    catalogName String
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    set of databricks.Table full names: catalog.schema.table
    schemaName String

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Viewing docs for Databricks v0.4.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.