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 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 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
[--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

--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.

--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]

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
[--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

--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
[--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 update

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

az cosmosdb cassandra table update --account-name
--keyspace-name
--name
--resource-group
[--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

--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.