az cosmosdb sql softdeleted-database
Note
此參考文獻是Azure CLI版本 cosmosdb-preview 擴充套件(版本 2.17.1 或更高版本)的一部分。 這個擴充功能會在你第一次執行 az cosmosdb sql softdeleted-database 指令時自動安裝。 深入了解擴充功能。
此命令群組處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
Manage soft-deleted databases for Azure Cosmos DB SQL API.
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az cosmosdb sql softdeleted-database delete |
永久刪除軟刪除的資料庫。 |
擴充功能 | Preview |
| az cosmosdb sql softdeleted-database list |
列出所有軟刪除的 Azure Cosmos DB 帳戶資料庫。 |
擴充功能 | Preview |
| az cosmosdb sql softdeleted-database recover |
恢復軟刪除的資料庫。 |
擴充功能 | Preview |
| az cosmosdb sql softdeleted-database show |
顯示軟刪除資料庫的詳細資料。 |
擴充功能 | Preview |
az cosmosdb sql softdeleted-database delete
指令群組「cosmosdb sql softdeleted-database」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
永久刪除軟刪除的資料庫。
az cosmosdb sql softdeleted-database delete --location
--name
--resource-group
[--account-name]
[--acquire-policy-token]
[--change-reference]
[--ids]
[--subscription]
[--yes]
範例
永久刪除軟刪除的資料庫。
az cosmosdb sql softdeleted-database delete --location westus --account-name MyAccount --name MyDatabase --resource-group MyResourceGroup
必要參數
帳戶的位置。
要清除的軟刪除資料庫名稱。
資源群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Cosmos 資料庫帳號名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
不提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb sql softdeleted-database list
指令群組「cosmosdb sql softdeleted-database」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
列出所有軟刪除的 Azure Cosmos DB 帳戶資料庫。
az cosmosdb sql softdeleted-database list --location
--resource-group
[--account-name]
[--ids]
[--subscription]
範例
列出所有軟刪除的 Azure Cosmos DB 帳戶資料庫。
az cosmosdb sql softdeleted-database list --location westus --account-name MyAccount --resource-group MyResourceGroup
必要參數
帳戶的位置。
資源群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Cosmos 資料庫帳號名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb sql softdeleted-database recover
指令群組「cosmosdb sql softdeleted-database」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
恢復軟刪除的資料庫。
az cosmosdb sql softdeleted-database recover --location
--name
--resource-group
[--account-name]
[--acquire-policy-token]
[--change-reference]
[--ids]
[--subscription]
範例
恢復軟刪除的資料庫。
az cosmosdb sql softdeleted-database recover --location westus --account-name MyAccount --name MyDatabase --resource-group MyResourceGroup
必要參數
帳戶的位置。
要恢復的軟刪除資料庫名稱。
資源群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Cosmos 資料庫帳號名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb sql softdeleted-database show
指令群組「cosmosdb sql softdeleted-database」目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
顯示軟刪除資料庫的詳細資料。
az cosmosdb sql softdeleted-database show --location
--name
--resource-group
[--account-name]
[--ids]
[--subscription]
範例
顯示軟刪除資料庫的詳細資料。
az cosmosdb sql softdeleted-database show --location westus --account-name MyAccount --name MyDatabase --resource-group MyResourceGroup
必要參數
帳戶的位置。
軟刪除資料庫名稱。
資源群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
Cosmos 資料庫帳號名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |