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

databricks.getBudgetPolicies

Explore with Pulumi AI

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

    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<GetBudgetPoliciesPolicy>
    Id string
    The provider-assigned unique ID for this managed resource.
    Policies []GetBudgetPoliciesPolicy
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<GetBudgetPoliciesPolicy>
    id string
    The provider-assigned unique ID for this managed resource.
    policies GetBudgetPoliciesPolicy[]
    id str
    The provider-assigned unique ID for this managed resource.
    policies Sequence[GetBudgetPoliciesPolicy]
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<Property Map>

    Supporting Types

    GetBudgetPoliciesPolicy

    PolicyId string
    (string) - The Id of the policy. This field is generated by Databricks and globally unique
    BindingWorkspaceIds List<int>
    (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
    CustomTags List<GetBudgetPoliciesPolicyCustomTag>
    (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
    PolicyName 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
    PolicyId string
    (string) - The Id of the policy. This field is generated by Databricks and globally unique
    BindingWorkspaceIds []int
    (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
    CustomTags []GetBudgetPoliciesPolicyCustomTag
    (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
    PolicyName 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
    policyId String
    (string) - The Id of the policy. This field is generated by Databricks and globally unique
    bindingWorkspaceIds List<Integer>
    (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
    customTags List<GetBudgetPoliciesPolicyCustomTag>
    (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
    policyName 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
    policyId string
    (string) - The Id of the policy. This field is generated by Databricks and globally unique
    bindingWorkspaceIds number[]
    (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
    customTags GetBudgetPoliciesPolicyCustomTag[]
    (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
    policyName 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_ids Sequence[int]
    (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
    custom_tags Sequence[GetBudgetPoliciesPolicyCustomTag]
    (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
    policyId String
    (string) - The Id of the policy. This field is generated by Databricks and globally unique
    bindingWorkspaceIds List<Number>
    (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
    customTags List<Property Map>
    (list of CustomPolicyTag) - A list of tags defined by the customer. At most 20 entries are allowed per policy
    policyName 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

    Key string
    (string) - The key of the tag.

    • Must be unique among all custom tags of the same policy
    • Cannot be “budget-policy-name”, “budget-policy-id” or "budget-policy-resolution-result" - these tags are preserved.
    Value string
    (string) - The value of the tag.
    Key string
    (string) - The key of the tag.

    • Must be unique among all custom tags of the same policy
    • Cannot be “budget-policy-name”, “budget-policy-id” or "budget-policy-resolution-result" - these tags are preserved.
    Value string
    (string) - The value of the tag.
    key String
    (string) - The key of the tag.

    • Must be unique among all custom tags of the same policy
    • Cannot be “budget-policy-name”, “budget-policy-id” or "budget-policy-resolution-result" - these tags are preserved.
    value String
    (string) - The value of the tag.
    key string
    (string) - The key of the tag.

    • Must be unique among all custom tags of the same policy
    • Cannot be “budget-policy-name”, “budget-policy-id” or "budget-policy-resolution-result" - these tags are preserved.
    value string
    (string) - The value of the tag.
    key str
    (string) - The key of the tag.

    • Must be unique among all custom tags of the same policy
    • Cannot be “budget-policy-name”, “budget-policy-id” or "budget-policy-resolution-result" - these tags are preserved.
    value str
    (string) - The value of the tag.
    key String
    (string) - The key of the tag.

    • Must be unique among all custom tags of the same policy
    • Cannot be “budget-policy-name”, “budget-policy-id” or "budget-policy-resolution-result" - these tags are preserved.
    value String
    (string) - The value of the tag.

    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