Share via


Cassandra Resources - List Cassandra Tables

Lists the Cassandra table under an existing Azure Cosmos DB database account.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables?api-version=2025-04-15

URI Parameters

Name In Required Type Description
accountName
path True

string

minLength: 3
maxLength: 50
pattern: ^[a-z0-9]+(-[a-z0-9]+)*

Cosmos DB database account name.

keyspaceName
path True

string

Cosmos DB keyspace name.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Responses

Name Type Description
200 OK

CassandraTableListResult

The Cassandra table properties were retrieved successfully.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Impersonate your user account

Examples

CosmosDBCassandraTableList

Sample request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/tables?api-version=2025-04-15

Sample response

{
  "value": [
    {
      "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName",
      "name": "tableName",
      "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables",
      "location": "West US",
      "tags": {},
      "properties": {
        "resource": {
          "id": "tableName",
          "defaultTtl": 100,
          "schema": {
            "columns": [
              {
                "name": "columnA",
                "type": "Ascii"
              }
            ],
            "partitionKeys": [
              {
                "name": "columnA"
              }
            ],
            "clusterKeys": [
              {
                "name": "columnA",
                "orderBy": "Asc"
              }
            ]
          }
        }
      }
    }
  ]
}

Definitions

Name Description
AutoscaleSettings
CassandraPartitionKey

Cosmos DB Cassandra table partition key

CassandraSchema

Cosmos DB Cassandra table schema

CassandraTableGetResults

An Azure Cosmos DB Cassandra table.

CassandraTableListResult

The List operation response, that contains the Cassandra tables and their properties.

ClusterKey

Cosmos DB Cassandra table cluster key

Column

Cosmos DB Cassandra table column

Options
Resource

AutoscaleSettings

Name Type Description
maxThroughput

integer

Represents maximum throughput, the resource can scale up to.

CassandraPartitionKey

Cosmos DB Cassandra table partition key

Name Type Description
name

string

Name of the Cosmos DB Cassandra table partition key

CassandraSchema

Cosmos DB Cassandra table schema

Name Type Description
clusterKeys

ClusterKey[]

List of cluster key.

columns

Column[]

List of Cassandra table columns.

partitionKeys

CassandraPartitionKey[]

List of partition key.

CassandraTableGetResults

An Azure Cosmos DB Cassandra table.

Name Type Description
id

string

The unique resource identifier of the ARM resource.

location

string

The location of the resource group to which the resource belongs.

name

string

The name of the ARM resource.

properties.options

Options

properties.resource

Resource

tags

object

Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, the default experience for a template type is set with "defaultExperience": "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB".

type

string

The type of Azure resource.

CassandraTableListResult

The List operation response, that contains the Cassandra tables and their properties.

Name Type Description
value

CassandraTableGetResults[]

List of Cassandra tables and their properties.

ClusterKey

Cosmos DB Cassandra table cluster key

Name Type Description
name

string

Name of the Cosmos DB Cassandra table cluster key

orderBy

string

Order of the Cosmos DB Cassandra table cluster key, only support "Asc" and "Desc"

Column

Cosmos DB Cassandra table column

Name Type Description
name

string

Name of the Cosmos DB Cassandra table column

type

string

Type of the Cosmos DB Cassandra table column

Options

Name Type Description
autoscaleSettings

AutoscaleSettings

Specifies the Autoscale settings.

throughput

integer

Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

Resource

Name Type Description
_etag

string

A system generated property representing the resource etag required for optimistic concurrency control.

_rid

string

A system generated property. A unique identifier.

_ts

number

A system generated property that denotes the last updated timestamp of the resource.

analyticalStorageTtl

integer

Analytical TTL.

defaultTtl

integer

Time to live of the Cosmos DB Cassandra table

id

string

Name of the Cosmos DB Cassandra table

schema

CassandraSchema

Schema of the Cosmos DB Cassandra table