1. Packages
  2. Databricks Provider
  3. API Docs
  4. getWorkspaceNetworkOption
Databricks v1.71.0 published on Monday, Jun 9, 2025 by Pulumi

databricks.getWorkspaceNetworkOption

Explore with Pulumi AI

databricks logo
Databricks v1.71.0 published on Monday, Jun 9, 2025 by Pulumi

    Using getWorkspaceNetworkOption

    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 getWorkspaceNetworkOption(args: GetWorkspaceNetworkOptionArgs, opts?: InvokeOptions): Promise<GetWorkspaceNetworkOptionResult>
    function getWorkspaceNetworkOptionOutput(args: GetWorkspaceNetworkOptionOutputArgs, opts?: InvokeOptions): Output<GetWorkspaceNetworkOptionResult>
    def get_workspace_network_option(network_policy_id: Optional[str] = None,
                                     workspace_id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetWorkspaceNetworkOptionResult
    def get_workspace_network_option_output(network_policy_id: Optional[pulumi.Input[str]] = None,
                                     workspace_id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetWorkspaceNetworkOptionResult]
    func LookupWorkspaceNetworkOption(ctx *Context, args *LookupWorkspaceNetworkOptionArgs, opts ...InvokeOption) (*LookupWorkspaceNetworkOptionResult, error)
    func LookupWorkspaceNetworkOptionOutput(ctx *Context, args *LookupWorkspaceNetworkOptionOutputArgs, opts ...InvokeOption) LookupWorkspaceNetworkOptionResultOutput

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

    public static class GetWorkspaceNetworkOption 
    {
        public static Task<GetWorkspaceNetworkOptionResult> InvokeAsync(GetWorkspaceNetworkOptionArgs args, InvokeOptions? opts = null)
        public static Output<GetWorkspaceNetworkOptionResult> Invoke(GetWorkspaceNetworkOptionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWorkspaceNetworkOptionResult> getWorkspaceNetworkOption(GetWorkspaceNetworkOptionArgs args, InvokeOptions options)
    public static Output<GetWorkspaceNetworkOptionResult> getWorkspaceNetworkOption(GetWorkspaceNetworkOptionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: databricks:index/getWorkspaceNetworkOption:getWorkspaceNetworkOption
      arguments:
        # arguments dictionary

    The following arguments are supported:

    NetworkPolicyId string
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    WorkspaceId string
    The workspace ID
    NetworkPolicyId string
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    WorkspaceId string
    The workspace ID
    networkPolicyId String
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    workspaceId String
    The workspace ID
    networkPolicyId string
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    workspaceId string
    The workspace ID
    network_policy_id str
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    workspace_id str
    The workspace ID
    networkPolicyId String
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    workspaceId String
    The workspace ID

    getWorkspaceNetworkOption Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkPolicyId string
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    WorkspaceId string
    (integer) - The workspace ID
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkPolicyId string
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    WorkspaceId string
    (integer) - The workspace ID
    id String
    The provider-assigned unique ID for this managed resource.
    networkPolicyId String
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    workspaceId String
    (integer) - The workspace ID
    id string
    The provider-assigned unique ID for this managed resource.
    networkPolicyId string
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    workspaceId string
    (integer) - The workspace ID
    id str
    The provider-assigned unique ID for this managed resource.
    network_policy_id str
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    workspace_id str
    (integer) - The workspace ID
    id String
    The provider-assigned unique ID for this managed resource.
    networkPolicyId String
    (string) - The network policy ID to apply to the workspace. This controls the network access rules for all serverless compute resources in the workspace. Each workspace can only be linked to one policy at a time. If no policy is explicitly assigned, the workspace will use 'default-policy'
    workspaceId String
    (integer) - The workspace ID

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.71.0 published on Monday, Jun 9, 2025 by Pulumi