Cassandra Resources - Get Cassandra Table
Gets 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/{tableName}?api-version=2024-11-15
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
account
|
path | True |
string minLength: 3maxLength: 50 pattern: ^[a-z0-9]+(-[a-z0-9]+)* |
Cosmos DB database account name. |
keyspace
|
path | True |
string |
Cosmos DB keyspace name. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
table
|
path | True |
string |
Cosmos DB table name. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The Cassandra table property was 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
CosmosDBCassandraTableGet
Sample request
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/tables/tableName?api-version=2024-11-15
Sample response
{
"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"
}
]
},
"_rid": "PD5DALigDgw=",
"_ts": 1459200611,
"_etag": "\"00005900-0000-0000-0000-56f9a2630000\""
}
}
}
Definitions
Name | Description |
---|---|
Autoscale |
|
Cassandra |
Cosmos DB Cassandra table partition key |
Cassandra |
Cosmos DB Cassandra table schema |
Cassandra |
An Azure Cosmos DB Cassandra table. |
Cluster |
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 |
List of cluster key. |
|
columns |
Column[] |
List of Cassandra table columns. |
partitionKeys |
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 | ||
properties.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. |
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 |
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 |
Schema of the Cosmos DB Cassandra table |