az cosmosdb cassandra table

管理 Azure Cosmos DB Cassandra 資料表。

命令

名稱 Description 類型 狀態
az cosmosdb cassandra table create

在 Azure Cosmos DB Cassandra keyspace 下建立 Cassandra 資料表。

核心 GA
az cosmosdb cassandra table delete

刪除 Azure Cosmos DB Cassandra keyspace 底下的 Cassandra 資料表。

核心 GA
az cosmosdb cassandra table exists

檢查 Azure Cosmos DB Cassandra 資料表是否存在。

核心 GA
az cosmosdb cassandra table list

列出 Azure Cosmos DB Cassandra keyspace 底下的 Cassandra 資料表。

核心 GA
az cosmosdb cassandra table show

顯示 Azure Cosmos DB Cassandra keyspace 底下 Cassandra 資料表的詳細資料。

核心 GA
az cosmosdb cassandra table throughput

管理 Azure Cosmos DB 帳戶下 Cassandra 資料表的輸送量。

核心 GA
az cosmosdb cassandra table throughput migrate

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

核心 GA
az cosmosdb cassandra table throughput show

取得 Azure Cosmos DB Cassandra keyspace 下 Cassandra 資料表的輸送量。

核心 GA
az cosmosdb cassandra table throughput update

更新 Azure Cosmos DB Cassandra keyspace 下 Cassandra 資料表的輸送量。

核心 GA
az cosmosdb cassandra table update

更新 Azure Cosmos DB Cassandra keyspace 底下的 Cassandra 資料表。

核心 GA

az cosmosdb cassandra table create

在 Azure Cosmos DB Cassandra keyspace 下建立 Cassandra 資料表。

az cosmosdb cassandra table create --account-name
                                   --keyspace-name
                                   --name
                                   --resource-group
                                   --schema
                                   [--analytical-storage-ttl]
                                   [--max-throughput]
                                   [--throughput]
                                   [--ttl]

範例

建立 Azure Cosmos DB Cassandra 資料表。

az cosmosdb cassandra table create -g MyResourceGroup -a MyAccount -k MyKeyspace -n MyTable --schema @indexes-file.json --throughput "500" --ttl 1000

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--keyspace-name -k

Keyspace 名稱。

--name -n

資料表名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

--schema

架構,您可以將它輸入為字串或檔案,例如 --schema 或 --schema @schema-file.json 「{」columns「: [{」name「: 」columnA「,」type「: 」uuid「}, {」name「: 」columnB「,」type「: 」Ascii「}],」partitionKeys「: [{」name「: 」columnA「}]}」。

選擇性參數

--analytical-storage-ttl

分析 TTL,啟用分析儲存體時。

--max-throughput

輸送量資源上限可以調整為 (RU/秒)。 提供資源啟用自動調整時。 最小值可以是 4000 (RU/秒)。

--throughput

Cassandra 資料表的輸送量(RU/秒)。 預設值為 400。 如果 keyspace 具有共用輸送量,除非資料表應具有專用輸送量,否則請省略此參數。

--ttl

預設 TTL。 如果值遺失或設定為 「-1」,則專案不會過期。 如果值設定為 「n」,則專案會在上次修改時間之後的 「n」 秒到期。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb cassandra table delete

刪除 Azure Cosmos DB Cassandra keyspace 底下的 Cassandra 資料表。

az cosmosdb cassandra table delete --account-name
                                   --keyspace-name
                                   --name
                                   --resource-group
                                   [--yes]

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--keyspace-name -k

Keyspace 名稱。

--name -n

資料表名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--yes -y

不提示確認。

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

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb cassandra table exists

檢查 Azure Cosmos DB Cassandra 資料表是否存在。

az cosmosdb cassandra table exists --account-name
                                   --keyspace-name
                                   --name
                                   --resource-group

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--keyspace-name -k

Keyspace 名稱。

--name -n

資料表名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb cassandra table list

列出 Azure Cosmos DB Cassandra keyspace 底下的 Cassandra 資料表。

az cosmosdb cassandra table list --account-name
                                 --keyspace-name
                                 --resource-group

範例

列出 Azure Cosmos DB Cassandra keyspace 底下的 Cassandra 資料表。 (自動產生)

az cosmosdb cassandra table list --account-name MyAccount --keyspace-name MyKeyspace --resource-group MyResourceGroup

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--keyspace-name -k

Keyspace 名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb cassandra table show

顯示 Azure Cosmos DB Cassandra keyspace 底下 Cassandra 資料表的詳細資料。

az cosmosdb cassandra table show --account-name
                                 --keyspace-name
                                 --name
                                 --resource-group

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--keyspace-name -k

Keyspace 名稱。

--name -n

資料表名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az cosmosdb cassandra table update

更新 Azure Cosmos DB Cassandra keyspace 底下的 Cassandra 資料表。

az cosmosdb cassandra table update --account-name
                                   --keyspace-name
                                   --name
                                   --resource-group
                                   [--analytical-storage-ttl]
                                   [--schema]
                                   [--ttl]

範例

更新 Azure Cosmos DB Cassandra keyspace 底下的 Cassandra 資料表。 (自動產生)

az cosmosdb cassandra table update --account-name MyAccount --keyspace-name MyKeyspace --name MyTable --resource-group MyResourceGroup --schema @indexes-file.json

必要參數

--account-name -a

Cosmosdb 帳戶名稱。

--keyspace-name -k

Keyspace 名稱。

--name -n

資料表名稱。

--resource-group -g

資源組名。 您可以使用 來設定預設群組 az configure --defaults group=<name>

選擇性參數

--analytical-storage-ttl

分析 TTL,啟用分析儲存體時。

--schema

架構,您可以將它輸入為字串或檔案,例如 --schema 或 --schema @schema-file.json 「{」columns「: [{」name「: 」columnA「,」type「: 」uuid「}, {」name「: 」columnB「,」type「: 」Ascii「}],」partitionKeys「: [{」name「: 」columnA「}]}」。

--ttl

預設 TTL。 如果值遺失或設定為 「-1」,則專案不會過期。 如果值設定為 「n」,則專案會在上次修改時間之後的 「n」 秒到期。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。