az cosmosdb cassandra table

Manage Azure Cosmos DB Cassandra tables.

Commands

az cosmosdb cassandra table create

Create an Cassandra table under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table delete

Delete the Cassandra table under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table exists

Checks if an Azure Cosmos DB Cassandra table exists.

az cosmosdb cassandra table list

List the Cassandra tables under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table show

Show the details of a Cassandra table under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table throughput

Manage throughput of Cassandra table under an Azure Cosmos DB account.

az cosmosdb cassandra table throughput migrate

Migrate the throughput of the Cassandra table between autoscale and manually provisioned.

az cosmosdb cassandra table throughput show

Get the throughput of the Cassandra table under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table throughput update

Update the throughput of the Cassandra table under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table update

Update an Cassandra table under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table create

Create an Cassandra table under an Azure Cosmos DB Cassandra keyspace.

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

Examples

Create an Azure Cosmos DB Cassandra table.

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

Required Parameters

--account-name -a

Cosmosdb account name.

--keyspace-name -k

Keyspace name.

--name -n

Table name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--schema

Schema, you can enter it as a string or as a file, e.g., --schema @schema-file.json or --schema "{"columns": [{"name": "columnA","type": "uuid"}, {"name": "columnB","type": "Ascii"}],"partitionKeys": [{"name": "columnA"}]}".

Optional Parameters

--analytical-storage-ttl

Analytical TTL, when analytical storage is enabled.

--max-throughput

The maximum throughput resource can scale to (RU/s). Provided when the resource is autoscale enabled. The minimum value can be 4000 (RU/s).

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--throughput

The throughput of Cassandra table (RU/s). Default value is 400. Omit this parameter if the keyspace has shared throughput unless the table should have dedicated throughput.

--ttl

Default TTL. If the value is missing or set to "-1", items don’t expire. If the value is set to "n", items will expire "n" seconds after last modified time.

az cosmosdb cassandra table delete

Delete the Cassandra table under an Azure Cosmos DB Cassandra keyspace.

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

Required Parameters

--account-name -a

Cosmosdb account name.

--keyspace-name -k

Keyspace name.

--name -n

Table name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

az cosmosdb cassandra table exists

Checks if an Azure Cosmos DB Cassandra table exists.

az cosmosdb cassandra table exists --account-name
                                   --keyspace-name
                                   --name
                                   --resource-group
                                   [--subscription]

Required Parameters

--account-name -a

Cosmosdb account name.

--keyspace-name -k

Keyspace name.

--name -n

Table name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az cosmosdb cassandra table list

List the Cassandra tables under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table list --account-name
                                 --keyspace-name
                                 --resource-group
                                 [--query-examples]
                                 [--subscription]

Examples

List the Cassandra tables under an Azure Cosmos DB Cassandra keyspace. (autogenerated)

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

Required Parameters

--account-name -a

Cosmosdb account name.

--keyspace-name -k

Keyspace name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az cosmosdb cassandra table show

Show the details of a Cassandra table under an Azure Cosmos DB Cassandra keyspace.

az cosmosdb cassandra table show --account-name
                                 --keyspace-name
                                 --name
                                 --resource-group
                                 [--query-examples]
                                 [--subscription]

Required Parameters

--account-name -a

Cosmosdb account name.

--keyspace-name -k

Keyspace name.

--name -n

Table name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az cosmosdb cassandra table update

Update an Cassandra table under an Azure Cosmos DB Cassandra keyspace.

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

Examples

Update an Cassandra table under an Azure Cosmos DB Cassandra keyspace. (autogenerated)

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

Required Parameters

--account-name -a

Cosmosdb account name.

--keyspace-name -k

Keyspace name.

--name -n

Table name.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--analytical-storage-ttl

Analytical TTL, when analytical storage is enabled.

--schema

Schema, you can enter it as a string or as a file, e.g., --schema @schema-file.json or --schema "{"columns": [{"name": "columnA","type": "uuid"}, {"name": "columnB","type": "Ascii"}],"partitionKeys": [{"name": "columnA"}]}".

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--ttl

Default TTL. If the value is missing or set to "-1", items don’t expire. If the value is set to "n", items will expire "n" seconds after last modified time.