1. Packages
  2. Packages
  3. Databricks Provider
  4. API Docs
  5. getZones
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

    Example Usage

    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var zones = Output.Create(Databricks.GetZones.InvokeAsync());
        }
    
    }
    
    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.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const zones = pulumi.output(databricks.getZones());
    
    import pulumi
    import pulumi_databricks as databricks
    
    zones = databricks.get_zones()
    

    Example coming soon!

    Using getZones

    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 getZones(opts?: InvokeOptions): Promise<GetZonesResult>
    function getZonesOutput(opts?: InvokeOptions): Output<GetZonesResult>
    def get_zones(opts: Optional[InvokeOptions] = None) -> GetZonesResult
    def get_zones_output(opts: Optional[InvokeOptions] = None) -> Output[GetZonesResult]
    func GetZones(ctx *Context, opts ...InvokeOption) (*GetZonesResult, error)
    func GetZonesOutput(ctx *Context, opts ...InvokeOption) GetZonesResultOutput

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

    public static class GetZones 
    {
        public static Task<GetZonesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetZonesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZonesResult> getZones(InvokeOptions options)
    public static Output<GetZonesResult> getZones(InvokeOptions options)
    
    fn::invoke:
      function: databricks:index/getZones:getZones
      arguments:
        # arguments dictionary

    getZones Result

    The following output properties are available:

    DefaultZone string
    This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
    Id string
    The provider-assigned unique ID for this managed resource.
    Zones List<string>
    This is a list of all the zones available for your subnets in your Databricks workspace.
    DefaultZone string
    This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
    Id string
    The provider-assigned unique ID for this managed resource.
    Zones []string
    This is a list of all the zones available for your subnets in your Databricks workspace.
    defaultZone String
    This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
    id String
    The provider-assigned unique ID for this managed resource.
    zones List<String>
    This is a list of all the zones available for your subnets in your Databricks workspace.
    defaultZone string
    This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
    id string
    The provider-assigned unique ID for this managed resource.
    zones string[]
    This is a list of all the zones available for your subnets in your Databricks workspace.
    default_zone str
    This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
    id str
    The provider-assigned unique ID for this managed resource.
    zones Sequence[str]
    This is a list of all the zones available for your subnets in your Databricks workspace.
    defaultZone String
    This is the default zone that gets assigned to your workspace. This is the zone used by default for clusters and instance pools.
    id String
    The provider-assigned unique ID for this managed resource.
    zones List<String>
    This is a list of all the zones available for your subnets in your Databricks workspace.

    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.