Databricks v1.71.0 published on Monday, Jun 9, 2025 by Pulumi
databricks.getBudgetPolicies
Explore with Pulumi AI
This data source can be used to fetch the list of budget policies.
Note This data source can only be used with an account-level provider!
Example Usage
Getting a list of all budget policies:
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const all = databricks.getBudgetPolicies({});
import pulumi
import pulumi_databricks as databricks
all = databricks.get_budget_policies()
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.GetBudgetPolicies(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var all = Databricks.GetBudgetPolicies.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import java.util.List;
import java.util.ArrayList;
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 all = DatabricksFunctions.getBudgetPolicies(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
}
}
variables:
all:
fn::invoke:
function: databricks:getBudgetPolicies
arguments: {}
Using getBudgetPolicies
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 getBudgetPolicies(opts?: InvokeOptions): Promise<GetBudgetPoliciesResult>
function getBudgetPoliciesOutput(opts?: InvokeOptions): Output<GetBudgetPoliciesResult>
def get_budget_policies(opts: Optional[InvokeOptions] = None) -> GetBudgetPoliciesResult
def get_budget_policies_output(opts: Optional[InvokeOptions] = None) -> Output[GetBudgetPoliciesResult]
func GetBudgetPolicies(ctx *Context, opts ...InvokeOption) (*GetBudgetPoliciesResult, error)
func GetBudgetPoliciesOutput(ctx *Context, opts ...InvokeOption) GetBudgetPoliciesResultOutput
> Note: This function is named GetBudgetPolicies
in the Go SDK.
public static class GetBudgetPolicies
{
public static Task<GetBudgetPoliciesResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetBudgetPoliciesResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetBudgetPoliciesResult> getBudgetPolicies(InvokeOptions options)
public static Output<GetBudgetPoliciesResult> getBudgetPolicies(InvokeOptions options)
fn::invoke:
function: databricks:index/getBudgetPolicies:getBudgetPolicies
arguments:
# arguments dictionary
getBudgetPolicies Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
List<Get
Budget Policies Policy>
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
[]Get
Budget Policies Policy
- id String
- The provider-assigned unique ID for this managed resource.
- policies
List<Get
Budget Policies Policy>
- id string
- The provider-assigned unique ID for this managed resource.
- policies
Get
Budget Policies Policy[]
- id str
- The provider-assigned unique ID for this managed resource.
- policies
Sequence[Get
Budget Policies Policy]
- id String
- The provider-assigned unique ID for this managed resource.
- policies List<Property Map>
Supporting Types
GetBudgetPoliciesPolicy
- Policy
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- Binding
Workspace List<int>Ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
- List<Get
Budget Policies Policy Custom Tag> - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- Policy
Name string - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- Policy
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- Binding
Workspace []intIds - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
- []Get
Budget Policies Policy Custom Tag - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- Policy
Name string - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- policy
Id String - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- binding
Workspace List<Integer>Ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
- List<Get
Budget Policies Policy Custom Tag> - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- policy
Name String - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- policy
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- binding
Workspace number[]Ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
- Get
Budget Policies Policy Custom Tag[] - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- policy
Name string - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- policy_
id str - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- binding_
workspace_ Sequence[int]ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
- Sequence[Get
Budget Policies Policy Custom Tag] - (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- policy_
name str - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
- policy
Id String - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- binding
Workspace List<Number>Ids - (list of integer) - List of workspaces that this budget policy will be exclusively bound to. An empty binding implies that this budget policy is open to any workspace in the account
- List<Property Map>
- (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
- policy
Name String - (string) - The name of the policy.
- Must be unique among active policies.
- Can contain only characters from the ISO 8859-1 (latin1) set.
- Can't start with reserved keywords such as
databricks:default-policy
GetBudgetPoliciesPolicyCustomTag
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.