az cosmosdb sql softdeleted-container

Note

此參考文獻是Azure CLI版本 cosmosdb-preview 擴充套件(版本 2.17.1 或更高版本)的一部分。 這個擴充功能會在你第一次執行 az cosmosdb sql softdeleted-container 指令時自動安裝。 深入了解擴充功能。

此命令群組處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

Manage soft-deleted containers for Azure Cosmos DB SQL API.

命令

名稱 Description 類型 狀態
az cosmosdb sql softdeleted-container delete

永久刪除軟刪除的容器。

擴充功能 Preview
az cosmosdb sql softdeleted-container list

列出資料庫中所有軟刪除的容器。

擴充功能 Preview
az cosmosdb sql softdeleted-container recover

恢復一個軟刪除的容器。

擴充功能 Preview
az cosmosdb sql softdeleted-container show

顯示軟刪除容器的詳細資訊。

擴充功能 Preview

az cosmosdb sql softdeleted-container delete

預覽

指令群組 'cosmosdb sql softdeleted-container' 目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

永久刪除軟刪除的容器。

az cosmosdb sql softdeleted-container delete --database-name
                                             --location
                                             --name
                                             --resource-group
                                             [--account-name]
                                             [--acquire-policy-token]
                                             [--change-reference]
                                             [--ids]
                                             [--subscription]
                                             [--yes]

範例

永久刪除軟刪除的容器。

az cosmosdb sql softdeleted-container delete --location westus --account-name MyAccount --database-name MyDatabase --name MyContainer --resource-group MyResourceGroup

必要參數

--database-name -d

資料庫的名稱。

--location -l

帳戶的位置。

--name -n

要清除軟刪除的容器名稱。

--resource-group -g

資源群組的名稱。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

Cosmos 資料庫帳號名稱。

屬性 值
參數群組: Resource Id Arguments
--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--subscription

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

屬性 值
參數群組: Resource Id Arguments
--yes -y

不提示確認。

屬性 值
預設值: False
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性 值
預設值: False

az cosmosdb sql softdeleted-container list

預覽

指令群組 'cosmosdb sql softdeleted-container' 目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出資料庫中所有軟刪除的容器。

az cosmosdb sql softdeleted-container list --database-name
                                           --location
                                           --resource-group
                                           [--account-name]
                                           [--ids]
                                           [--subscription]

範例

列出資料庫中所有軟刪除的容器。

az cosmosdb sql softdeleted-container list --location westus --account-name MyAccount --database-name MyDatabase --resource-group MyResourceGroup

必要參數

--database-name -d

資料庫的名稱。

--location -l

帳戶的位置。

--resource-group -g

資源群組的名稱。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

Cosmos 資料庫帳號名稱。

屬性 值
參數群組: Resource Id Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--subscription

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

屬性 值
參數群組: Resource Id Arguments
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性 值
預設值: False

az cosmosdb sql softdeleted-container recover

預覽

指令群組 'cosmosdb sql softdeleted-container' 目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

恢復一個軟刪除的容器。

az cosmosdb sql softdeleted-container recover --database-name
                                              --location
                                              --name
                                              --resource-group
                                              [--account-name]
                                              [--acquire-policy-token]
                                              [--change-reference]
                                              [--ids]
                                              [--subscription]

範例

恢復一個軟刪除的容器。

az cosmosdb sql softdeleted-container recover --location westus --account-name MyAccount --database-name MyDatabase --name MyContainer --resource-group MyResourceGroup

必要參數

--database-name -d

資料庫的名稱。

--location -l

帳戶的位置。

--name -n

要恢復的軟刪除容器名稱。

--resource-group -g

資源群組的名稱。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

Cosmos 資料庫帳號名稱。

屬性 值
參數群組: Resource Id Arguments
--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--subscription

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

屬性 值
參數群組: Resource Id Arguments
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性 值
預設值: False

az cosmosdb sql softdeleted-container show

預覽

指令群組 'cosmosdb sql softdeleted-container' 目前處於預覽階段並正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

顯示軟刪除容器的詳細資訊。

az cosmosdb sql softdeleted-container show --database-name
                                           --location
                                           --name
                                           --resource-group
                                           [--account-name]
                                           [--ids]
                                           [--subscription]

範例

顯示軟刪除容器的詳細資訊。

az cosmosdb sql softdeleted-container show --location westus --account-name MyAccount --database-name MyDatabase --name MyContainer --resource-group MyResourceGroup

必要參數

--database-name -d

資料庫的名稱。

--location -l

帳戶的位置。

--name -n

軟刪除容器名稱。

--resource-group -g

資源群組的名稱。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

Cosmos 資料庫帳號名稱。

屬性 值
參數群組: Resource Id Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--subscription

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

屬性 值
參數群組: Resource Id Arguments
全域參數
--debug

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

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

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

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

輸出格式。

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

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

--verbose

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

屬性 值
預設值: False