共用方式為


az cosmosdb mongodb database throughput

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

命令

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

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

Core GA
az cosmosdb mongodb database throughput show

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

Core GA
az cosmosdb mongodb database throughput update

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

Core 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

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

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

屬性
預設值: False

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

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

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

屬性
預設值: False

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 資料庫的輸送量。 (autogenerated)

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

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

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

輸出格式。

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

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

--subscription

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

--verbose

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

屬性
預設值: False