account budgets 命令组

注释

Databricks CLI 的使用须遵守 Databricks 许可Databricks 隐私声明,包括任何数据使用规定。

account budgets Databricks CLI 中的命令组包含用于管理帐户预算配置的命令。 预算使你能够监视整个帐户的使用情况。 请参阅创建和监视预算

databricks 帐户预算创建

为帐户创建新的预算配置。

databricks account budgets create [flags]

选项

--json JSON

    包含请求正文的内联 JSON 字符串或 @path 到 JSON 文件

全局标志

例子

以下示例使用 JSON 创建预算:

databricks account budgets create --json '{"name": "Monthly Budget", "budget_configuration": {"amount": 10000, "period": "MONTHLY", "start_date": "2024-01-01"}}'

以下示例使用 JSON 文件创建预算:

databricks account budgets create --json @budget.json

databricks 帐户预算删除

删除帐户的预算配置。 无法撤消此作。

databricks account budgets delete BUDGET_ID [flags]

Arguments

BUDGET_ID

    Databricks 预算配置 ID。

选项

全局标志

例子

以下示例按 ID 删除预算:

databricks account budgets delete budget-abc123

databricks 帐户预算获取

获取 ID 指定的帐户的预算配置。

databricks account budgets get BUDGET_ID [flags]

Arguments

BUDGET_ID

    预算配置 ID。

选项

全局标志

例子

以下示例按 ID 获取预算:

databricks account budgets get budget-abc123

databricks 帐户预算列表

获取与此帐户关联的所有预算。

databricks account budgets list [flags]

选项

--page-token string

    从以前的页面令牌接收的所有预算配置调用。

全局标志

例子

以下示例列出所有预算:

databricks account budgets list

以下示例列出了下一页的预算:

databricks account budgets list --page-token "next_page_token"

databricks 帐户预算更新

更新 ID 指定的帐户的预算配置。

databricks account budgets update BUDGET_ID [flags]

Arguments

BUDGET_ID

    Databricks 预算配置 ID。

选项

--json JSON

    包含请求正文的内联 JSON 字符串或 @path 到 JSON 文件

全局标志

例子

以下示例使用 JSON 更新预算:

databricks account budgets update budget-abc123 --json '{"name": "Updated Monthly Budget", "budget_configuration": {"amount": 15000}}'

以下示例使用 JSON 文件更新预算:

databricks account budgets update budget-abc123 --json @update-budget.json

全局标志

--debug

  是否启用调试日志记录。

-h--help

    显示 Databricks CLI、相关命令组或相关命令的帮助。

--log-file 字符串

    一个字符串,表示要将输出日志写入到的文件。 如果未指定此标志,则默认会将输出日志写入到 stderr。

--log-format 格式

    日志格式类型,textjson。 默认值为 text

--log-level 字符串

    一个表示日志格式级别的字符串。 如果未指定,则禁用日志格式级别。

-o, --output 类型

    命令输出类型为 textjson。 默认值为 text

-p, --profile 字符串

    要用于运行命令的 ~/.databrickscfg 文件中的配置文件名称。 如果未指定此标志,并且存在命名为 DEFAULT 的配置文件,则使用该配置文件。

--progress-format 格式

    显示进度日志的格式: defaultappendinplacejson

-t, --target 字符串

    如果适用,要使用的捆绑包目标