Skip to main content

cassandra_data_centers

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

Overview

Namecassandra_data_centers
TypeResource
Idazure.cosmosdb.cassandra_data_centers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
authenticationMethodLdapPropertiesobjectLdap authentication method properties. This feature is in preview.
availabilityZonebooleanIf the data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra data center virtual machines.
backupStorageCustomerKeyUristringIndicates the Key Uri of the customer key to use for encryption of the backup storage account.
base64EncodedCassandraYamlFragmentstringA fragment of a cassandra.yaml configuration file to be included in the cassandra.yaml for all nodes in this data center. The fragment should be Base64 encoded, and only a subset of keys are allowed.
dataCenterLocationstringThe region this data center should be created in.
deallocatedbooleanWhether the data center has been deallocated.
delegatedSubnetIdstringResource id of a subnet the nodes in this data center should have their network interfaces connected to. The subnet must be in the same region specified in 'dataCenterLocation' and must be able to route to the subnet specified in the cluster's 'delegatedManagementSubnetId' property. This resource id will be of the form '/subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/'.
diskCapacityintegerNumber of disks attached to each node. Default is 4.
diskSkustringDisk SKU used for data centers. Default value is P30.
managedDiskCustomerKeyUristringKey uri to use for encryption of managed disks. Ensure the system assigned identity of the cluster has been assigned appropriate permissions(key get/wrap/unwrap permissions) on the key.
nodeCountintegerThe number of nodes the data center should have. This is the desired number. After it is set, it may take some time for the data center to be scaled to match. To monitor the number of nodes and their status, use the fetchNodeStatus method on the cluster.
privateEndpointIpAddressstringIp of the VPN Endpoint for this data center.
provisionErrorobjectCassandraError.
provisioningStatestringThe status of the resource at the time the operation was called. Known values are: "Creating", "Updating", "Deleting", "Succeeded", "Failed", and "Canceled". (Creating, Updating, Deleting, Succeeded, Failed, Canceled)
seedNodesarrayIP addresses for seed nodes in this data center. This is for reference. Generally you will want to use the seedNodes property on the cluster, which aggregates the seed nodes from all data centers in the cluster.
skustringVirtual Machine SKU used for data centers. Default value is Standard_DS14_v2.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, data_center_name, subscription_idGet the properties of a managed Cassandra data center.
listselectresource_group_name, cluster_name, subscription_idList all data centers in a particular managed Cassandra cluster.
create_updateinsertresource_group_name, cluster_name, data_center_name, subscription_idCreate or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
updateupdateresource_group_name, cluster_name, data_center_name, subscription_idUpdate some of the properties of a managed Cassandra data center.
create_updatereplaceresource_group_name, cluster_name, data_center_name, subscription_idCreate or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.
deletedeleteresource_group_name, cluster_name, data_center_name, subscription_idDelete a managed Cassandra data center.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cluster_namestringManaged Cassandra cluster name. Required.
data_center_namestringData center name in a managed Cassandra cluster. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the properties of a managed Cassandra data center.

SELECT
id,
name,
authenticationMethodLdapProperties,
availabilityZone,
backupStorageCustomerKeyUri,
base64EncodedCassandraYamlFragment,
dataCenterLocation,
deallocated,
delegatedSubnetId,
diskCapacity,
diskSku,
managedDiskCustomerKeyUri,
nodeCount,
privateEndpointIpAddress,
provisionError,
provisioningState,
seedNodes,
sku,
systemData,
type
FROM azure.cosmosdb.cassandra_data_centers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND data_center_name = '{{ data_center_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.

INSERT INTO azure.cosmosdb.cassandra_data_centers (
properties,
resource_group_name,
cluster_name,
data_center_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ data_center_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update some of the properties of a managed Cassandra data center.

UPDATE azure.cosmosdb.cassandra_data_centers
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND data_center_name = '{{ data_center_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

REPLACE examples

Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH.

REPLACE azure.cosmosdb.cassandra_data_centers
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND data_center_name = '{{ data_center_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a managed Cassandra data center.

DELETE FROM azure.cosmosdb.cassandra_data_centers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND data_center_name = '{{ data_center_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;