Skip to main content

cassandra_clusters

Creates, updates, deletes, gets or lists a cassandra_clusters resource.

Overview

Namecassandra_clusters
TypeResource
Idazure.cosmos_db.cassandra_clusters

Fields

NameDatatypeDescription
idstringThe unique resource identifier of the ARM resource.
namestringThe name of the ARM resource.
identityobjectIdentity for the resource.
locationstringThe location of the resource group to which the resource belongs.
propertiesobjectProperties of a managed Cassandra cluster.
tagsobjectTags 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".
typestringThe type of Azure resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdGet the properties of a managed Cassandra cluster.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all managed Cassandra clusters in this resource group.
list_by_subscriptionSELECTsubscriptionIdList all managed Cassandra clusters in this subscription.
create_updateINSERTclusterName, resourceGroupName, subscriptionIdCreate or update a managed Cassandra cluster. When updating, you must specify all writable properties. To update only some properties, use PATCH.
deleteDELETEclusterName, resourceGroupName, subscriptionIdDeletes a managed Cassandra cluster.
updateUPDATEclusterName, resourceGroupName, subscriptionIdUpdates some of the properties of a managed Cassandra cluster.
deallocateEXECclusterName, resourceGroupName, subscriptionIdDeallocate the Managed Cassandra Cluster and Associated Data Centers. Deallocation will deallocate the host virtual machine of this cluster, and reserved the data disk. This won't do anything on an already deallocated cluster. Use Start to restart the cluster.
invoke_commandEXECclusterName, resourceGroupName, subscriptionId, data__command, data__hostInvoke a command like nodetool for cassandra maintenance
invoke_command_asyncEXECclusterName, resourceGroupName, subscriptionId, data__command, data__hostInvoke a command like nodetool for cassandra maintenance asynchronously
startEXECclusterName, resourceGroupName, subscriptionIdStart the Managed Cassandra Cluster and Associated Data Centers. Start will start the host virtual machine of this cluster with reserved data disk. This won't do anything on an already running cluster. Use Deallocate to deallocate the cluster.
statusEXECclusterName, resourceGroupName, subscriptionIdGets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster.

SELECT examples

List all managed Cassandra clusters in this subscription.

SELECT
id,
name,
identity,
location,
properties,
tags,
type
FROM azure.cosmos_db.cassandra_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new cassandra_clusters resource.

/*+ create */
INSERT INTO azure.cosmos_db.cassandra_clusters (
clusterName,
resourceGroupName,
subscriptionId,
location,
tags,
identity,
properties
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a cassandra_clusters resource.

/*+ update */
UPDATE azure.cosmos_db.cassandra_clusters
SET
location = '{{ location }}',
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified cassandra_clusters resource.

/*+ delete */
DELETE FROM azure.cosmos_db.cassandra_clusters
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';