budgets
Creates, updates, deletes, gets or lists a budgets
resource.
Overview
Name | budgets |
Type | Resource |
Id | databricks_account.billing.budgets |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Request completed successfully.
Name | Datatype | Description |
---|---|---|
account_id | string | |
budget_configuration_id | string | |
display_name | string | |
alert_configurations | array | |
create_time | integer | |
filter | object | |
update_time | integer |
Request completed successfully.
Name | Datatype | Description |
---|---|---|
account_id | string | |
budget_configuration_id | string | |
display_name | string | |
alert_configurations | array | |
create_time | integer | |
filter | object | |
update_time | integer |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | Gets a budget configuration for an account. Both account and budget configuration are specified by ID. | ||
list | select | Gets all budgets associated with this account. | ||
create | insert | Create a new budget configuration for an account. For full details, see | ||
update | replace | Updates a budget configuration for an account. Both account and budget configuration are specified by ID. | ||
delete | delete | Deletes a budget configuration for an account. Both account and budget configuration are specified by ID. This cannot be undone. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|
SELECT
examples
- get
- list
Gets a budget configuration for an account. Both account and budget configuration are specified by ID.
SELECT
account_id,
budget_configuration_id,
display_name,
alert_configurations,
create_time,
filter,
update_time
FROM databricks_account.billing.budgets;
Gets all budgets associated with this account.
SELECT
account_id,
budget_configuration_id,
display_name,
alert_configurations,
create_time,
filter,
update_time
FROM databricks_account.billing.budgets;
INSERT
examples
- create
- Manifest
Create a new budget configuration for an account. For full details, see
INSERT INTO databricks_account.billing.budgets (
data__budget
)
SELECT
'{{ budget }}'
RETURNING
budget
;
# Description fields are for documentation purposes
- name: budgets
props:
- name: budget
value: required
REPLACE
examples
- update
Updates a budget configuration for an account. Both account and budget configuration are specified by ID.
REPLACE databricks_account.billing.budgets
SET
data__budget = '{{ budget }}'
WHERE
RETURNING
budget;
DELETE
examples
- delete
Deletes a budget configuration for an account. Both account and budget configuration are specified by ID. This cannot be undone.
DELETE FROM databricks_account.billing.budgets;