az cosmosdb table
Note
此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。
管理 Azure Cosmos DB 帳戶的數據表資源。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az cosmosdb table create |
在 Azure Cosmos DB 帳戶下建立數據表。 |
Core | GA |
| az cosmosdb table delete |
刪除 Azure Cosmos DB 帳戶底下的數據表。 |
Core | GA |
| az cosmosdb table exists |
檢查 Azure Cosmos DB 數據表是否存在。 |
Core | GA |
| az cosmosdb table list |
列出 Azure Cosmos DB 帳戶底下的數據表。 |
Core | GA |
| az cosmosdb table restorable-resource |
管理可在指定時間戳和區域之指定帳戶中還原的數據表。 |
核心和擴充功能 | GA |
| az cosmosdb table restorable-resource list |
列出可在指定時間戳和區域之指定帳戶中還原的所有數據表。 |
Core | GA |
| az cosmosdb table restorable-resource list (cosmosdb-preview 擴充功能) |
列出可在指定時間戳和區域之指定帳戶中還原的所有數據表。 |
Extension | Preview |
| az cosmosdb table restorable-table |
管理可在 Azure Cosmos DB 帳戶中還原的不同數據表版本。 |
核心和擴充功能 | GA |
| az cosmosdb table restorable-table list |
列出在指定可還原帳戶中建立/修改/刪除的所有數據表版本。 |
Core | GA |
| az cosmosdb table restorable-table list (cosmosdb-preview 擴充功能) |
列出在指定可還原帳戶中建立/修改/刪除的所有數據表版本。 |
Extension | Preview |
| az cosmosdb table restore |
還原相同帳戶內已刪除的數據表。 |
Core | GA |
| az cosmosdb table restore (cosmosdb-preview 擴充功能) |
還原相同帳戶內已刪除的數據表。 |
Extension | Preview |
| az cosmosdb table retrieve-latest-backup-time |
擷取指定區域中指定數據表的最新可還原時間戳。 |
Core | GA |
| az cosmosdb table retrieve-latest-backup-time (cosmosdb-preview 擴充功能) |
擷取指定區域中指定數據表的最新可還原時間戳。 |
Extension | Preview |
| az cosmosdb table role |
管理 Azure Cosmos DB 數據表角色資源。 |
Extension | GA |
| az cosmosdb table role assignment |
管理 Azure Cosmos DB 數據表角色指派。 |
Extension | GA |
| az cosmosdb table role assignment create |
在 Azure Cosmos DB 帳戶下建立數據表角色指派。 |
Extension | GA |
| az cosmosdb table role assignment delete |
刪除 Azure Cosmos DB 帳戶下的數據表角色指派。 |
Extension | GA |
| az cosmosdb table role assignment exists |
檢查 Azure Cosmos DB 角色指派是否存在。 |
Extension | GA |
| az cosmosdb table role assignment list |
列出 Azure Cosmos DB 帳戶下的所有數據表角色指派。 |
Extension | GA |
| az cosmosdb table role assignment show |
顯示 Azure Cosmos DB 帳戶下數據表角色指派的屬性。 |
Extension | GA |
| az cosmosdb table role assignment update |
更新 Azure Cosmos DB 帳戶下的數據表角色指派。 |
Extension | GA |
| az cosmosdb table role definition |
管理 Azure Cosmos DB 資料表角色定義。 |
Extension | GA |
| az cosmosdb table role definition create |
在 Azure Cosmos DB 帳戶下建立數據表角色定義。 |
Extension | GA |
| az cosmosdb table role definition delete |
刪除 Azure Cosmos DB 帳戶底下的數據表角色定義。 |
Extension | GA |
| az cosmosdb table role definition exists |
檢查 Azure Cosmos DB 角色定義是否存在。 |
Extension | GA |
| az cosmosdb table role definition list |
列出 Azure Cosmos DB 帳戶下的所有數據表角色定義。 |
Extension | GA |
| az cosmosdb table role definition show |
顯示 Azure Cosmos DB 帳戶下數據表角色定義的屬性。 |
Extension | GA |
| az cosmosdb table role definition update |
更新 Azure Cosmos DB 帳戶下的數據表角色定義。 |
Extension | GA |
| az cosmosdb table show |
顯示 Azure Cosmos DB 帳戶下數據表的詳細數據。 |
Core | GA |
| az cosmosdb table throughput |
管理 Azure Cosmos DB 帳戶下的數據表輸送量。 |
Core | GA |
| az cosmosdb table throughput migrate |
在自動調整和手動布建之間移轉數據表的輸送量。 |
Core | GA |
| az cosmosdb table throughput show |
取得 Azure Cosmos DB 帳戶下數據表的輸送量。 |
Core | GA |
| az cosmosdb table throughput update |
更新 Azure Cosmos DB 帳戶下數據表的輸送量。 |
Core | GA |
az cosmosdb table create
在 Azure Cosmos DB 帳戶下建立數據表。
az cosmosdb table create --account-name
--name
--resource-group
[--max-throughput]
[--throughput]
必要參數
Cosmosdb 帳戶名稱。
數據表名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
輸送量資源上限可以調整為 (RU/秒)。 提供資源啟用自動調整時。 最小值可以是 4000 (RU/秒)。
數據表的輸送量(RU/秒)。 預設值為 400。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb table delete
刪除 Azure Cosmos DB 帳戶底下的數據表。
az cosmosdb table delete --account-name
--name
--resource-group
[--yes]
必要參數
Cosmosdb 帳戶名稱。
數據表名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb table exists
檢查 Azure Cosmos DB 數據表是否存在。
az cosmosdb table exists --account-name
--name
--resource-group
必要參數
Cosmosdb 帳戶名稱。
數據表名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb table list
列出 Azure Cosmos DB 帳戶底下的數據表。
az cosmosdb table list --account-name
--resource-group
必要參數
Cosmosdb 帳戶名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb table restore
還原相同帳戶內已刪除的數據表。
az cosmosdb table restore --account-name
--resource-group
--table-name
[--disable-ttl]
[--restore-timestamp]
範例
還原相同帳戶內已刪除的數據表。
az cosmosdb table restore --resource-group resource_group --account-name database_account_name --table-name name_of_table_needs_to_be_restored --restore-timestamp 2020-07-13T16:03:41+0000
必要參數
Cosmosdb 帳戶名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
CosmosDB 資料表名稱的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
停用 TTL 還原的旗標。
使用方式:--disable-ttl True 預設值:false。
數據表必須還原至的時間戳。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb table restore (cosmosdb-preview 擴充功能)
此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
還原相同帳戶內已刪除的數據表。
az cosmosdb table restore --account-name
--resource-group
--table-name
[--disable-ttl {false, true}]
[--restore-timestamp]
範例
還原相同帳戶內已刪除的數據表。
az cosmosdb table restore --resource-group resource_group --account-name database_account_name --table-name name_of_table_needs_to_be_restored --restore-timestamp 2020-07-13T16:03:41+0000
必要參數
Cosmosdb 帳戶名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
CosmosDB 資料表名稱的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
啟用或停用已停用ttl還原。
| 屬性 | 值 |
|---|---|
| 接受的值: | false, true |
數據表必須還原至的時間戳。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb table retrieve-latest-backup-time
擷取指定區域中指定數據表的最新可還原時間戳。
az cosmosdb table retrieve-latest-backup-time --account-name
--location
--resource-group
--table-name
必要參數
CosmosDB 資料庫帳戶的名稱。
帳戶的位置。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
CosmosDB 資料表名稱的名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb table retrieve-latest-backup-time (cosmosdb-preview 擴充功能)
此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
擷取指定區域中指定數據表的最新可還原時間戳。
az cosmosdb table retrieve-latest-backup-time --account-name
--location
--resource-group
--table-name
必要參數
CosmosDB 資料庫帳戶的名稱。
帳戶的位置。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
CosmosDB 資料表名稱的名稱。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az cosmosdb table show
顯示 Azure Cosmos DB 帳戶下數據表的詳細數據。
az cosmosdb table show --account-name
--name
--resource-group
必要參數
Cosmosdb 帳戶名稱。
數據表名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |