หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Note
This information applies to Databricks CLI versions 0.205 and above. The Databricks CLI is in Public Preview.
Databricks CLI use is subject to the Databricks License and Databricks Privacy Notice, including any Usage Data provisions.
The account budgets command group within the Databricks CLI contains commands to manage budget configurations for your account. Budgets enable you to monitor usage across your account. See Create and monitor budgets.
databricks account budgets create
Create a new budget configuration for an account.
databricks account budgets create [flags]
Options
--json JSON
The inline JSON string or the @path to the JSON file with the request body
Examples
The following example creates a budget using JSON:
databricks account budgets create --json '{"name": "Monthly Budget", "budget_configuration": {"amount": 10000, "period": "MONTHLY", "start_date": "2024-01-01"}}'
The following example creates a budget using a JSON file:
databricks account budgets create --json @budget.json
databricks account budgets delete
Delete a budget configuration for an account. This cannot be undone.
databricks account budgets delete BUDGET_ID [flags]
Arguments
BUDGET_ID
The Databricks budget configuration ID.
Options
Examples
The following example deletes a budget by ID:
databricks account budgets delete budget-abc123
databricks account budgets get
Get a budget configuration for an account, specified by ID.
databricks account budgets get BUDGET_ID [flags]
Arguments
BUDGET_ID
The budget configuration ID.
Options
Examples
The following example gets a budget by ID:
databricks account budgets get budget-abc123
databricks account budgets list
Get all budgets associated with this account.
databricks account budgets list [flags]
Options
--page-token string
A page token received from a previous get all budget configurations call.
Examples
The following example lists all budgets:
databricks account budgets list
The following example lists the next page of budgets:
databricks account budgets list --page-token "next_page_token"
databricks account budgets update
Update a budget configuration for an account, specified by ID.
databricks account budgets update BUDGET_ID [flags]
Arguments
BUDGET_ID
The Databricks budget configuration ID.
Options
--json JSON
The inline JSON string or the @path to the JSON file with the request body
Examples
The following example updates a budget using JSON:
databricks account budgets update budget-abc123 --json '{"name": "Updated Monthly Budget", "budget_configuration": {"amount": 15000}}'
The following example updates a budget using a JSON file:
databricks account budgets update budget-abc123 --json @update-budget.json
Global flags
--debug
Whether to enable debug logging.
-h or --help
Display help for the Databricks CLI or the related command group or the related command.
--log-file string
A string representing the file to write output logs to. If this flag is not specified then the default is to write output logs to stderr.
--log-format format
The log format type, text or json. The default value is text.
--log-level string
A string representing the log format level. If not specified then the log format level is disabled.
-o, --output type
The command output type, text or json. The default value is text.
-p, --profile string
The name of the profile in the ~/.databrickscfg file to use to run the command. If this flag is not specified then if it exists, the profile named DEFAULT is used.
--progress-format format
The format to display progress logs: default, append, inplace, or json
-t, --target string
If applicable, the bundle target to use