Viewing docs for Databricks v1.92.0
published on Tuesday, May 12, 2026 by Pulumi
published on Tuesday, May 12, 2026 by Pulumi
Viewing docs for Databricks v1.92.0
published on Tuesday, May 12, 2026 by Pulumi
published on Tuesday, May 12, 2026 by Pulumi
This data source retrieves the current default Workspace Base Environment configuration for the workspace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const current = databricks.getEnvironmentsDefaultWorkspaceBaseEnvironment({
name: "default-workspace-base-environment",
});
export const defaultCpuEnvironment = current.then(current => current.cpuWorkspaceBaseEnvironment);
import pulumi
import pulumi_databricks as databricks
current = databricks.get_environments_default_workspace_base_environment(name="default-workspace-base-environment")
pulumi.export("defaultCpuEnvironment", current.cpu_workspace_base_environment)
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 {
current, err := databricks.GetEnvironmentsDefaultWorkspaceBaseEnvironment(ctx, &databricks.LookupEnvironmentsDefaultWorkspaceBaseEnvironmentArgs{
Name: "default-workspace-base-environment",
}, nil)
if err != nil {
return err
}
ctx.Export("defaultCpuEnvironment", current.CpuWorkspaceBaseEnvironment)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var current = Databricks.GetEnvironmentsDefaultWorkspaceBaseEnvironment.Invoke(new()
{
Name = "default-workspace-base-environment",
});
return new Dictionary<string, object?>
{
["defaultCpuEnvironment"] = current.Apply(getEnvironmentsDefaultWorkspaceBaseEnvironmentResult => getEnvironmentsDefaultWorkspaceBaseEnvironmentResult.CpuWorkspaceBaseEnvironment),
};
});
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.GetEnvironmentsDefaultWorkspaceBaseEnvironmentArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 current = DatabricksFunctions.getEnvironmentsDefaultWorkspaceBaseEnvironment(GetEnvironmentsDefaultWorkspaceBaseEnvironmentArgs.builder()
.name("default-workspace-base-environment")
.build());
ctx.export("defaultCpuEnvironment", current.cpuWorkspaceBaseEnvironment());
}
}
variables:
current:
fn::invoke:
function: databricks:getEnvironmentsDefaultWorkspaceBaseEnvironment
arguments:
name: default-workspace-base-environment
outputs:
defaultCpuEnvironment: ${current.cpuWorkspaceBaseEnvironment}
Example coming soon!
Using getEnvironmentsDefaultWorkspaceBaseEnvironment
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 getEnvironmentsDefaultWorkspaceBaseEnvironment(args: GetEnvironmentsDefaultWorkspaceBaseEnvironmentArgs, opts?: InvokeOptions): Promise<GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult>
function getEnvironmentsDefaultWorkspaceBaseEnvironmentOutput(args: GetEnvironmentsDefaultWorkspaceBaseEnvironmentOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult>def get_environments_default_workspace_base_environment(name: Optional[str] = None,
provider_config: Optional[GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfig] = None,
opts: Optional[InvokeOptions] = None) -> GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult
def get_environments_default_workspace_base_environment_output(name: pulumi.Input[Optional[str]] = None,
provider_config: pulumi.Input[Optional[GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfigArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult]func LookupEnvironmentsDefaultWorkspaceBaseEnvironment(ctx *Context, args *LookupEnvironmentsDefaultWorkspaceBaseEnvironmentArgs, opts ...InvokeOption) (*LookupEnvironmentsDefaultWorkspaceBaseEnvironmentResult, error)
func LookupEnvironmentsDefaultWorkspaceBaseEnvironmentOutput(ctx *Context, args *LookupEnvironmentsDefaultWorkspaceBaseEnvironmentOutputArgs, opts ...InvokeOption) LookupEnvironmentsDefaultWorkspaceBaseEnvironmentResultOutput> Note: This function is named LookupEnvironmentsDefaultWorkspaceBaseEnvironment in the Go SDK.
public static class GetEnvironmentsDefaultWorkspaceBaseEnvironment
{
public static Task<GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult> InvokeAsync(GetEnvironmentsDefaultWorkspaceBaseEnvironmentArgs args, InvokeOptions? opts = null)
public static Output<GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult> Invoke(GetEnvironmentsDefaultWorkspaceBaseEnvironmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult> getEnvironmentsDefaultWorkspaceBaseEnvironment(GetEnvironmentsDefaultWorkspaceBaseEnvironmentArgs args, InvokeOptions options)
public static Output<GetEnvironmentsDefaultWorkspaceBaseEnvironmentResult> getEnvironmentsDefaultWorkspaceBaseEnvironment(GetEnvironmentsDefaultWorkspaceBaseEnvironmentArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getEnvironmentsDefaultWorkspaceBaseEnvironment:getEnvironmentsDefaultWorkspaceBaseEnvironment
arguments:
# arguments dictionarydata "databricks_getenvironmentsdefaultworkspacebaseenvironment" "name" {
# arguments
}The following arguments are supported:
- Name string
- The resource name of this singleton resource. Format: default-workspace-base-environment
- Provider
Config GetEnvironments Default Workspace Base Environment Provider Config - Configure the provider for management through account provider.
- Name string
- The resource name of this singleton resource. Format: default-workspace-base-environment
- Provider
Config GetEnvironments Default Workspace Base Environment Provider Config - Configure the provider for management through account provider.
- name string
- The resource name of this singleton resource. Format: default-workspace-base-environment
- provider_
config object - Configure the provider for management through account provider.
- name String
- The resource name of this singleton resource. Format: default-workspace-base-environment
- provider
Config GetEnvironments Default Workspace Base Environment Provider Config - Configure the provider for management through account provider.
- name string
- The resource name of this singleton resource. Format: default-workspace-base-environment
- provider
Config GetEnvironments Default Workspace Base Environment Provider Config - Configure the provider for management through account provider.
- name str
- The resource name of this singleton resource. Format: default-workspace-base-environment
- provider_
config GetEnvironments Default Workspace Base Environment Provider Config - Configure the provider for management through account provider.
- name String
- The resource name of this singleton resource. Format: default-workspace-base-environment
- provider
Config Property Map - Configure the provider for management through account provider.
getEnvironmentsDefaultWorkspaceBaseEnvironment Result
The following output properties are available:
- Cpu
Workspace stringBase Environment - (string) - The default workspace base environment for CPU compute. Format: workspace-base-environments/{workspace_base_environment}
- Gpu
Workspace stringBase Environment - (string) - The default workspace base environment for GPU compute. Format: workspace-base-environments/{workspace_base_environment}
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - The resource name of this singleton resource. Format: default-workspace-base-environment
- Provider
Config GetEnvironments Default Workspace Base Environment Provider Config
- Cpu
Workspace stringBase Environment - (string) - The default workspace base environment for CPU compute. Format: workspace-base-environments/{workspace_base_environment}
- Gpu
Workspace stringBase Environment - (string) - The default workspace base environment for GPU compute. Format: workspace-base-environments/{workspace_base_environment}
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - The resource name of this singleton resource. Format: default-workspace-base-environment
- Provider
Config GetEnvironments Default Workspace Base Environment Provider Config
- cpu_
workspace_ stringbase_ environment - (string) - The default workspace base environment for CPU compute. Format: workspace-base-environments/{workspace_base_environment}
- gpu_
workspace_ stringbase_ environment - (string) - The default workspace base environment for GPU compute. Format: workspace-base-environments/{workspace_base_environment}
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - The resource name of this singleton resource. Format: default-workspace-base-environment
- provider_
config object
- cpu
Workspace StringBase Environment - (string) - The default workspace base environment for CPU compute. Format: workspace-base-environments/{workspace_base_environment}
- gpu
Workspace StringBase Environment - (string) - The default workspace base environment for GPU compute. Format: workspace-base-environments/{workspace_base_environment}
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - The resource name of this singleton resource. Format: default-workspace-base-environment
- provider
Config GetEnvironments Default Workspace Base Environment Provider Config
- cpu
Workspace stringBase Environment - (string) - The default workspace base environment for CPU compute. Format: workspace-base-environments/{workspace_base_environment}
- gpu
Workspace stringBase Environment - (string) - The default workspace base environment for GPU compute. Format: workspace-base-environments/{workspace_base_environment}
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - The resource name of this singleton resource. Format: default-workspace-base-environment
- provider
Config GetEnvironments Default Workspace Base Environment Provider Config
- cpu_
workspace_ strbase_ environment - (string) - The default workspace base environment for CPU compute. Format: workspace-base-environments/{workspace_base_environment}
- gpu_
workspace_ strbase_ environment - (string) - The default workspace base environment for GPU compute. Format: workspace-base-environments/{workspace_base_environment}
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- (string) - The resource name of this singleton resource. Format: default-workspace-base-environment
- provider_
config GetEnvironments Default Workspace Base Environment Provider Config
- cpu
Workspace StringBase Environment - (string) - The default workspace base environment for CPU compute. Format: workspace-base-environments/{workspace_base_environment}
- gpu
Workspace StringBase Environment - (string) - The default workspace base environment for GPU compute. Format: workspace-base-environments/{workspace_base_environment}
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - The resource name of this singleton resource. Format: default-workspace-base-environment
- provider
Config Property Map
Supporting Types
GetEnvironmentsDefaultWorkspaceBaseEnvironmentProviderConfig
- 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 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.92.0
published on Tuesday, May 12, 2026 by Pulumi
published on Tuesday, May 12, 2026 by Pulumi
