CassandraResourcesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CosmosDBManagementClient's

<xref:cassandra_resources> attribute.

Inheritance
builtins.object
CassandraResourcesOperations

Constructor

CassandraResourcesOperations(*args, **kwargs)

Methods

begin_create_update_cassandra_keyspace

Create or update an Azure Cosmos DB Cassandra keyspace.

begin_create_update_cassandra_table

Create or update an Azure Cosmos DB Cassandra Table.

begin_delete_cassandra_keyspace

Deletes an existing Azure Cosmos DB Cassandra keyspace.

begin_delete_cassandra_table

Deletes an existing Azure Cosmos DB Cassandra table.

begin_migrate_cassandra_keyspace_to_autoscale

Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.

begin_migrate_cassandra_keyspace_to_manual_throughput

Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.

begin_migrate_cassandra_table_to_autoscale

Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale.

begin_migrate_cassandra_table_to_manual_throughput

Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput.

begin_update_cassandra_keyspace_throughput

Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.

begin_update_cassandra_table_throughput

Update RUs per second of an Azure Cosmos DB Cassandra table.

get_cassandra_keyspace

Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.

get_cassandra_keyspace_throughput

Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.

get_cassandra_table

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

get_cassandra_table_throughput

Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.

list_cassandra_keyspaces

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

list_cassandra_tables

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

begin_create_update_cassandra_keyspace

Create or update an Azure Cosmos DB Cassandra keyspace.

begin_create_update_cassandra_keyspace(resource_group_name: str, account_name: str, keyspace_name: str, create_update_cassandra_keyspace_parameters: azure.mgmt.cosmosdb.models._models_py3.CassandraKeyspaceCreateUpdateParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cosmosdb.models._models_py3.CassandraKeyspaceGetResults]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

create_update_cassandra_keyspace_parameters
CassandraKeyspaceCreateUpdateParameters
Required

The parameters to provide for the current Cassandra keyspace.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either CassandraKeyspaceGetResults or the result of cls(response)

Return type

Exceptions

begin_create_update_cassandra_table

Create or update an Azure Cosmos DB Cassandra Table.

begin_create_update_cassandra_table(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, create_update_cassandra_table_parameters: azure.mgmt.cosmosdb.models._models_py3.CassandraTableCreateUpdateParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cosmosdb.models._models_py3.CassandraTableGetResults]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

table_name
str
Required

Cosmos DB table name.

create_update_cassandra_table_parameters
CassandraTableCreateUpdateParameters
Required

The parameters to provide for the current Cassandra Table.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either CassandraTableGetResults or the result of cls(response)

Return type

Exceptions

begin_delete_cassandra_keyspace

Deletes an existing Azure Cosmos DB Cassandra keyspace.

begin_delete_cassandra_keyspace(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_delete_cassandra_table

Deletes an existing Azure Cosmos DB Cassandra table.

begin_delete_cassandra_table(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

table_name
str
Required

Cosmos DB table name.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

begin_migrate_cassandra_keyspace_to_autoscale

Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale.

begin_migrate_cassandra_keyspace_to_autoscale(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsGetResults]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response)

Return type

Exceptions

begin_migrate_cassandra_keyspace_to_manual_throughput

Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput.

begin_migrate_cassandra_keyspace_to_manual_throughput(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsGetResults]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response)

Return type

Exceptions

begin_migrate_cassandra_table_to_autoscale

Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale.

begin_migrate_cassandra_table_to_autoscale(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsGetResults]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

table_name
str
Required

Cosmos DB table name.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response)

Return type

Exceptions

begin_migrate_cassandra_table_to_manual_throughput

Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput.

begin_migrate_cassandra_table_to_manual_throughput(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsGetResults]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

table_name
str
Required

Cosmos DB table name.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response)

Return type

Exceptions

begin_update_cassandra_keyspace_throughput

Update RUs per second of an Azure Cosmos DB Cassandra Keyspace.

begin_update_cassandra_keyspace_throughput(resource_group_name: str, account_name: str, keyspace_name: str, update_throughput_parameters: azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsUpdateParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsGetResults]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

update_throughput_parameters
ThroughputSettingsUpdateParameters
Required

The RUs per second of the parameters to provide for the current Cassandra Keyspace.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response)

Return type

Exceptions

begin_update_cassandra_table_throughput

Update RUs per second of an Azure Cosmos DB Cassandra table.

begin_update_cassandra_table_throughput(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, update_throughput_parameters: azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsUpdateParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsGetResults]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

table_name
str
Required

Cosmos DB table name.

update_throughput_parameters
ThroughputSettingsUpdateParameters
Required

The RUs per second of the parameters to provide for the current Cassandra table.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either ThroughputSettingsGetResults or the result of cls(response)

Return type

Exceptions

get_cassandra_keyspace

Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided name.

get_cassandra_keyspace(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) -> azure.mgmt.cosmosdb.models._models_py3.CassandraKeyspaceGetResults

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

cls
callable

A custom type or function that will be passed the direct response

Returns

CassandraKeyspaceGetResults, or the result of cls(response)

Return type

Exceptions

get_cassandra_keyspace_throughput

Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database account with the provided name.

get_cassandra_keyspace_throughput(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) -> azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsGetResults

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

cls
callable

A custom type or function that will be passed the direct response

Returns

ThroughputSettingsGetResults, or the result of cls(response)

Return type

Exceptions

get_cassandra_table

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

get_cassandra_table(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) -> azure.mgmt.cosmosdb.models._models_py3.CassandraTableGetResults

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

table_name
str
Required

Cosmos DB table name.

cls
callable

A custom type or function that will be passed the direct response

Returns

CassandraTableGetResults, or the result of cls(response)

Return type

Exceptions

get_cassandra_table_throughput

Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database account with the provided name.

get_cassandra_table_throughput(resource_group_name: str, account_name: str, keyspace_name: str, table_name: str, **kwargs: Any) -> azure.mgmt.cosmosdb.models._models_py3.ThroughputSettingsGetResults

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

table_name
str
Required

Cosmos DB table name.

cls
callable

A custom type or function that will be passed the direct response

Returns

ThroughputSettingsGetResults, or the result of cls(response)

Return type

Exceptions

list_cassandra_keyspaces

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

list_cassandra_keyspaces(resource_group_name: str, account_name: str, **kwargs: Any) -> Iterable[azure.mgmt.cosmosdb.models._models_py3.CassandraKeyspaceListResult]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either CassandraKeyspaceListResult or the result of cls(response)

Return type

Exceptions

list_cassandra_tables

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

list_cassandra_tables(resource_group_name: str, account_name: str, keyspace_name: str, **kwargs: Any) -> Iterable[azure.mgmt.cosmosdb.models._models_py3.CassandraTableListResult]

Parameters

resource_group_name
str
Required

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

account_name
str
Required

Cosmos DB database account name.

keyspace_name
str
Required

Cosmos DB keyspace name.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either CassandraTableListResult or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.cosmosdb.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\cosmosdb\\models\\__init__.py'>