共用方式為


az cosmosdb mongodb

Note

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

管理 Azure Cosmos DB 帳戶的 MongoDB 資源。

命令

名稱 Description 類型 狀態
az cosmosdb mongodb collection

管理 Azure Cosmos DB MongoDB 集合。

核心和擴充功能 GA
az cosmosdb mongodb collection create

在 Azure Cosmos DB MongoDB 資料庫下建立 MongoDB 集合。

Core GA
az cosmosdb mongodb collection delete

刪除 Azure Cosmos DB MongoDB 資料庫下的 MongoDB 集合。

Core GA
az cosmosdb mongodb collection exists

檢查 Azure Cosmos DB MongoDB 集合是否存在。

Core GA
az cosmosdb mongodb collection list

列出 Azure Cosmos DB MongoDB 資料庫底下的 MongoDB 集合。

Core GA
az cosmosdb mongodb collection merge

合併 mongodb 集合的數據分割。

Extension Preview
az cosmosdb mongodb collection redistribute-partition-throughput

重新發佈 mongodb 集合的數據分割輸送量。

Extension Preview
az cosmosdb mongodb collection restore

還原相同帳戶內已刪除的 mongodb 集合。

Core GA
az cosmosdb mongodb collection restore (cosmosdb-preview 擴充功能)

還原相同帳戶內已刪除的 mongodb 集合。

Extension Preview
az cosmosdb mongodb collection retrieve-partition-throughput

擷取 mongodb 集合的數據分割輸送量。

Extension Preview
az cosmosdb mongodb collection show

顯示 Azure Cosmos DB MongoDB 資料庫下 MongoDB 集合的詳細數據。

Core GA
az cosmosdb mongodb collection throughput

在 Azure Cosmos DB 帳戶下管理 MongoDB 集合的輸送量。

Core GA
az cosmosdb mongodb collection throughput migrate

在自動調整和手動布建之間移轉 MongoDB 集合的輸送量。

Core GA
az cosmosdb mongodb collection throughput show

取得 Azure Cosmos DB MongoDB 資料庫下 MongoDB 集合的輸送量。

Core GA
az cosmosdb mongodb collection throughput update

更新 Azure Cosmos DB MongoDB 資料庫下 MongoDB 集合的輸送量。

Core GA
az cosmosdb mongodb collection update

更新 Azure Cosmos DB MongoDB 資料庫下的 MongoDB 集合。

Core GA
az cosmosdb mongodb database

管理 Azure Cosmos DB MongoDB 資料庫。

核心和擴充功能 GA
az cosmosdb mongodb database create

在 Azure Cosmos DB 帳戶下建立 MongoDB 資料庫。

Core GA
az cosmosdb mongodb database delete

刪除 Azure Cosmos DB 帳戶下的 MongoDB 資料庫。

Core GA
az cosmosdb mongodb database exists

檢查 Azure Cosmos DB MongoDB 資料庫是否存在。

Core GA
az cosmosdb mongodb database list

列出 Azure Cosmos DB 帳戶下的 MongoDB 資料庫。

Core GA
az cosmosdb mongodb database merge

合併 mongodb 資料庫的分割區。

Extension Preview
az cosmosdb mongodb database restore

還原相同帳戶內已刪除的 mongodb 資料庫。

Core GA
az cosmosdb mongodb database restore (cosmosdb-preview 擴充功能)

還原相同帳戶內已刪除的 mongodb 資料庫。

Extension Preview
az cosmosdb mongodb database show

在 Azure Cosmos DB 帳戶下顯示 MongoDB 資料庫的詳細數據。

Core GA
az cosmosdb mongodb database throughput

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

Core GA
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 restorable-collection

管理可在 Azure Cosmos DB 帳戶資料庫中還原的不同 mongodb 集合版本。

核心和擴充功能 GA
az cosmosdb mongodb restorable-collection list

列出在指定資料庫中建立/修改/刪除的所有 mongodb 集合版本,以及可還原的帳戶。

Core GA
az cosmosdb mongodb restorable-collection list (cosmosdb-preview 擴充功能)

列出在指定資料庫中建立/修改/刪除的所有 mongodb 集合版本,以及可還原的帳戶。

Extension Preview
az cosmosdb mongodb restorable-database

管理可在 Azure Cosmos DB 帳戶中還原的不同 Mongodb 資料庫版本。

Core GA
az cosmosdb mongodb restorable-database list

列出在指定可還原帳戶中建立/修改/刪除的所有 mongodb 資料庫版本。

Core GA
az cosmosdb mongodb restorable-resource

管理資料庫及其集合,這些資料庫可以在指定的時間取樣和區域中還原於指定的帳戶中。

Core GA
az cosmosdb mongodb restorable-resource list

列出可在指定時間取樣和區域之指定帳戶中還原的所有資料庫及其集合。

Core GA
az cosmosdb mongodb retrieve-latest-backup-time

擷取指定區域中指定 mongodb 集合的最新可還原時間戳。

Core GA
az cosmosdb mongodb role

管理 Azure Cosmos DB Mongo 角色資源。

核心和擴充功能 GA
az cosmosdb mongodb role definition

管理 Azure Cosmos DB Mongo 角色定義。

核心和擴充功能 GA
az cosmosdb mongodb role definition create

在 Azure Cosmos DB 帳戶下建立 Mongo DB 角色定義。

Core GA
az cosmosdb mongodb role definition create (cosmosdb-preview 擴充功能)

在 Azure Cosmos DB 帳戶下建立 Mongo DB 角色定義。

Extension GA
az cosmosdb mongodb role definition delete

刪除 Azure Cosmos DB 帳戶底下的 CosmosDb MongoDb 角色定義。

Core GA
az cosmosdb mongodb role definition delete (cosmosdb-preview 擴充功能)

刪除 Azure Cosmos DB 帳戶底下的 CosmosDb MongoDb 角色定義。

Extension GA
az cosmosdb mongodb role definition exists

檢查 Azure Cosmos DB MongoDb 角色定義是否存在。

Core GA
az cosmosdb mongodb role definition exists (cosmosdb-preview 擴充功能)

檢查 Azure Cosmos DB MongoDb 角色定義是否存在。

Extension GA
az cosmosdb mongodb role definition list

列出 Azure Cosmos DB 帳戶下的所有 MongoDb 角色定義。

Core GA
az cosmosdb mongodb role definition list (cosmosdb-preview 擴充功能)

列出 Azure Cosmos DB 帳戶下的所有 MongoDb 角色定義。

Extension GA
az cosmosdb mongodb role definition show

顯示 Azure Cosmos DB 帳戶下 MongoDb 角色定義的屬性。

Core GA
az cosmosdb mongodb role definition show (cosmosdb-preview 擴充功能)

顯示 Azure Cosmos DB 帳戶下 MongoDb 角色定義的屬性。

Extension GA
az cosmosdb mongodb role definition update

更新 Azure Cosmos DB 帳戶下的 MongoDb 角色定義。

Core GA
az cosmosdb mongodb role definition update (cosmosdb-preview 擴充功能)

更新 Azure Cosmos DB 帳戶下的 MongoDb 角色定義。

Extension GA
az cosmosdb mongodb user

管理 Azure Cosmos DB Mongo 用戶資源。

核心和擴充功能 GA
az cosmosdb mongodb user definition

管理 Azure Cosmos DB Mongo 用戶定義。

核心和擴充功能 GA
az cosmosdb mongodb user definition create

在 Azure Cosmos DB 帳戶下建立 Mongo DB 用戶定義。

Core GA
az cosmosdb mongodb user definition create (cosmosdb-preview 擴充功能)

在 Azure Cosmos DB 帳戶下建立 Mongo DB 用戶定義。

Extension GA
az cosmosdb mongodb user definition delete

刪除 Azure Cosmos DB 帳戶底下的 CosmosDb MongoDb 用戶定義。

Core GA
az cosmosdb mongodb user definition delete (cosmosdb-preview 擴充功能)

刪除 Azure Cosmos DB 帳戶底下的 CosmosDb MongoDb 用戶定義。

Extension GA
az cosmosdb mongodb user definition exists

檢查 Azure Cosmos DB MongoDb 使用者定義是否存在。

Core GA
az cosmosdb mongodb user definition exists (cosmosdb-preview 擴充功能)

檢查 Azure Cosmos DB MongoDb 使用者定義是否存在。

Extension GA
az cosmosdb mongodb user definition list

列出 Azure Cosmos DB 帳戶下的所有 MongoDb 用戶定義。

Core GA
az cosmosdb mongodb user definition list (cosmosdb-preview 擴充功能)

列出 Azure Cosmos DB 帳戶下的所有 MongoDb 用戶定義。

Extension GA
az cosmosdb mongodb user definition show

在 Azure Cosmos DB 帳戶下顯示 MongoDb 使用者定義的屬性。

Core GA
az cosmosdb mongodb user definition show (cosmosdb-preview 擴充功能)

在 Azure Cosmos DB 帳戶下顯示 MongoDb 使用者定義的屬性。

Extension GA
az cosmosdb mongodb user definition update

更新 Azure Cosmos DB 帳戶下的 MongoDb 用戶定義。

Core GA
az cosmosdb mongodb user definition update (cosmosdb-preview 擴充功能)

更新 Azure Cosmos DB 帳戶下的 MongoDb 用戶定義。

Extension GA

az cosmosdb mongodb retrieve-latest-backup-time

擷取指定區域中指定 mongodb 集合的最新可還原時間戳。

az cosmosdb mongodb retrieve-latest-backup-time --account-name
                                                --collection-name
                                                --database-name
                                                --location
                                                --resource-group

必要參數

--account-name -a

CosmosDB 資料庫帳戶的名稱。

--collection-name -c

CosmosDB MongoDB 集合名稱的名稱。

--database-name -d

CosmosDB MongoDB 資料庫名稱的名稱。

--location -l

帳戶的位置。

--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