Skip to main content

vw_budget_policies

Creates, updates, deletes, gets or lists a vw_budget_policies resource.

Overview

Namevw_budget_policies
TypeView
Iddatabricks_account.billing.vw_budget_policies

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
policy_idstringUnique identifier for the budget policy.
policy_namestringDisplay name of the budget policy.
custom_tagsobjectKey-value custom tags associated with the budget policy.
binding_workspace_idstringID of a workspace bound to this budget policy (one row per workspace).

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.

SELECT Examples

SELECT
account_id,
policy_id,
policy_name,
custom_tags,
binding_workspace_id
FROM databricks_account.billing.vw_budget_policies
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
p.account_id,
p.policy_id,
p.policy_name,
p.custom_tags,
w.value AS binding_workspace_id
FROM databricks_account.billing.budget_policy p,
JSON_EACH(p.binding_workspace_ids) w
WHERE account_id = '{{ account_id }}'