Databricks v1.77.0 published on Tuesday, Nov 4, 2025 by Pulumi
databricks.getBudgetPolicies
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, &databricks.GetBudgetPoliciesArgs{}, 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 com.pulumi.databricks.inputs.GetBudgetPoliciesArgs;
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(GetBudgetPoliciesArgs.builder()
.build());
}
}
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(args: GetBudgetPoliciesArgs, opts?: InvokeOptions): Promise<GetBudgetPoliciesResult>
function getBudgetPoliciesOutput(args: GetBudgetPoliciesOutputArgs, opts?: InvokeOptions): Output<GetBudgetPoliciesResult>def get_budget_policies(filter_by: Optional[GetBudgetPoliciesFilterBy] = None,
page_size: Optional[int] = None,
sort_spec: Optional[GetBudgetPoliciesSortSpec] = None,
opts: Optional[InvokeOptions] = None) -> GetBudgetPoliciesResult
def get_budget_policies_output(filter_by: Optional[pulumi.Input[GetBudgetPoliciesFilterByArgs]] = None,
page_size: Optional[pulumi.Input[int]] = None,
sort_spec: Optional[pulumi.Input[GetBudgetPoliciesSortSpecArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBudgetPoliciesResult]func GetBudgetPolicies(ctx *Context, args *GetBudgetPoliciesArgs, opts ...InvokeOption) (*GetBudgetPoliciesResult, error)
func GetBudgetPoliciesOutput(ctx *Context, args *GetBudgetPoliciesOutputArgs, opts ...InvokeOption) GetBudgetPoliciesResultOutput> Note: This function is named GetBudgetPolicies in the Go SDK.
public static class GetBudgetPolicies
{
public static Task<GetBudgetPoliciesResult> InvokeAsync(GetBudgetPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetBudgetPoliciesResult> Invoke(GetBudgetPoliciesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBudgetPoliciesResult> getBudgetPolicies(GetBudgetPoliciesArgs args, InvokeOptions options)
public static Output<GetBudgetPoliciesResult> getBudgetPolicies(GetBudgetPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: databricks:index/getBudgetPolicies:getBudgetPolicies
arguments:
# arguments dictionaryThe following arguments are supported:
- Filter
By GetBudget Policies Filter By - A filter to apply to the list of policies
- Page
Size int - The maximum number of budget policies to return. If unspecified, at most 100 budget policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000
- Sort
Spec GetBudget Policies Sort Spec - The sort specification
- Filter
By GetBudget Policies Filter By - A filter to apply to the list of policies
- Page
Size int - The maximum number of budget policies to return. If unspecified, at most 100 budget policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000
- Sort
Spec GetBudget Policies Sort Spec - The sort specification
- filter
By GetBudget Policies Filter By - A filter to apply to the list of policies
- page
Size Integer - The maximum number of budget policies to return. If unspecified, at most 100 budget policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000
- sort
Spec GetBudget Policies Sort Spec - The sort specification
- filter
By GetBudget Policies Filter By - A filter to apply to the list of policies
- page
Size number - The maximum number of budget policies to return. If unspecified, at most 100 budget policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000
- sort
Spec GetBudget Policies Sort Spec - The sort specification
- filter_
by GetBudget Policies Filter By - A filter to apply to the list of policies
- page_
size int - The maximum number of budget policies to return. If unspecified, at most 100 budget policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000
- sort_
spec GetBudget Policies Sort Spec - The sort specification
- filter
By Property Map - A filter to apply to the list of policies
- page
Size Number - The maximum number of budget policies to return. If unspecified, at most 100 budget policies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000
- sort
Spec Property Map - The sort specification
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> - Filter
By GetBudget Policies Filter By - Page
Size int - Sort
Spec GetBudget Policies Sort Spec
- Id string
- The provider-assigned unique ID for this managed resource.
- Policies
[]Get
Budget Policies Policy - Filter
By GetBudget Policies Filter By - Page
Size int - Sort
Spec GetBudget Policies Sort Spec
- id String
- The provider-assigned unique ID for this managed resource.
- policies
List<Get
Budget Policies Policy> - filter
By GetBudget Policies Filter By - page
Size Integer - sort
Spec GetBudget Policies Sort Spec
- id string
- The provider-assigned unique ID for this managed resource.
- policies
Get
Budget Policies Policy[] - filter
By GetBudget Policies Filter By - page
Size number - sort
Spec GetBudget Policies Sort Spec
- id str
- The provider-assigned unique ID for this managed resource.
- policies
Sequence[Get
Budget Policies Policy] - filter_
by GetBudget Policies Filter By - page_
size int - sort_
spec GetBudget Policies Sort Spec
- id String
- The provider-assigned unique ID for this managed resource.
- policies List<Property Map>
- filter
By Property Map - page
Size Number - sort
Spec Property Map
Supporting Types
GetBudgetPoliciesFilterBy
- Creator
User intId - The policy creator user id to be filtered on. If unspecified, all policies will be returned
- Creator
User stringName - The policy creator user name to be filtered on. If unspecified, all policies will be returned
- 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
- Creator
User intId - The policy creator user id to be filtered on. If unspecified, all policies will be returned
- Creator
User stringName - The policy creator user name to be filtered on. If unspecified, all policies will be returned
- 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
- creator
User IntegerId - The policy creator user id to be filtered on. If unspecified, all policies will be returned
- creator
User StringName - The policy creator user name to be filtered on. If unspecified, all policies will be returned
- 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
- creator
User numberId - The policy creator user id to be filtered on. If unspecified, all policies will be returned
- creator
User stringName - The policy creator user name to be filtered on. If unspecified, all policies will be returned
- 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
- creator_
user_ intid - The policy creator user id to be filtered on. If unspecified, all policies will be returned
- creator_
user_ strname - The policy creator user name to be filtered on. If unspecified, all policies will be returned
- 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
- creator
User NumberId - The policy creator user id to be filtered on. If unspecified, all policies will be returned
- creator
User StringName - The policy creator user name to be filtered on. If unspecified, all policies will be returned
- 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
GetBudgetPoliciesPolicy
- 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
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- 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
- 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
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- 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
- 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
Id String - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- 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
- 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
Id string - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- 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
- 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_
id str - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- 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
- 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
Id String - (string) - The Id of the policy. This field is generated by Databricks and globally unique
- 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
GetBudgetPoliciesSortSpec
- Descending bool
- Whether to sort in descending order
- Field string
- The filed to sort by. Possible values are:
POLICY_NAME
- Descending bool
- Whether to sort in descending order
- Field string
- The filed to sort by. Possible values are:
POLICY_NAME
- descending Boolean
- Whether to sort in descending order
- field String
- The filed to sort by. Possible values are:
POLICY_NAME
- descending boolean
- Whether to sort in descending order
- field string
- The filed to sort by. Possible values are:
POLICY_NAME
- descending bool
- Whether to sort in descending order
- field str
- The filed to sort by. Possible values are:
POLICY_NAME
- descending Boolean
- Whether to sort in descending order
- field String
- The filed to sort by. Possible values are:
POLICY_NAME
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricksTerraform Provider.
