共用方式為


az cosmosdb mongodb database throughput

在 Azure Cosmos DB 帳戶下管理 MongoDB 資料庫的輸送量。

命令

名稱 Description 類型 狀態
az cosmosdb mongodb database throughput migrate

在自動調整和手動布建之間移轉 MongoDB 資料庫的輸送量。

核心 GA
az cosmosdb mongodb database throughput show

取得 Azure Cosmos DB 帳戶下 MongoDB 資料庫的輸送量。

核心 GA
az cosmosdb mongodb database throughput update

更新 Azure Cosmos DB 帳戶下 MongoDB 資料庫的輸送量。

核心 GA

az cosmosdb mongodb database throughput migrate

在自動調整和手動布建之間移轉 MongoDB 資料庫的輸送量。

az cosmosdb mongodb database throughput migrate --account-name
                                                --name
                                                --resource-group
                                                --throughput-type {autoscale, manual}

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--name -n

資料庫名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--throughput-type -t

要移轉至的輸送量類型。

接受的值: autoscale, manual
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

az cosmosdb mongodb database throughput show

取得 Azure Cosmos DB 帳戶下 MongoDB 資料庫的輸送量。

az cosmosdb mongodb database throughput show --account-name
                                             --name
                                             --resource-group

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--name -n

資料庫名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

az cosmosdb mongodb database throughput update

更新 Azure Cosmos DB 帳戶下 MongoDB 資料庫的輸送量。

az cosmosdb mongodb database throughput update --account-name
                                               --name
                                               --resource-group
                                               [--max-throughput]
                                               [--throughput]

範例

更新 Azure Cosmos DB 帳戶下 MongoDB 資料庫的輸送量。 ( 自動產生 )

az cosmosdb mongodb database throughput update --account-name MyAccount --name MyDatabase --resource-group MyResourceGroup --throughput "500"

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--name -n

資料庫名稱。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

選擇性參數

--max-throughput

輸送量資源上限可以調整為 (RU/秒)。 提供資源啟用自動調整時。 最小值可以是 4000 (RU/秒)。

--throughput

MongoDB 資料庫的輸送量(RU/秒)。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。