cassandra_data_center
Creates, updates, deletes, gets or lists a cassandra_data_center
resource.
Overview
Name | cassandra_data_center |
Type | Resource |
Id | azure.cosmos_db.cassandra_data_center |
Fields
Name | Datatype | Description |
---|---|---|
id | string | The unique resource identifier of the database account. |
name | string | The name of the database account. |
properties | object | Properties of a managed Cassandra data center. |
type | string | The type of Azure resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | clusterName, dataCenterName, resourceGroupName, subscriptionId | Get the properties of a managed Cassandra data center. |
list | SELECT | clusterName, resourceGroupName, subscriptionId | List all data centers in a particular managed Cassandra cluster. |
create_update | INSERT | clusterName, dataCenterName, resourceGroupName, subscriptionId | Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only some properties, use PATCH. |
delete | DELETE | clusterName, dataCenterName, resourceGroupName, subscriptionId | Delete a managed Cassandra data center. |
update | UPDATE | clusterName, dataCenterName, resourceGroupName, subscriptionId | Update some of the properties of a managed Cassandra data center. |
SELECT
examples
List all data centers in a particular managed Cassandra cluster.
SELECT
id,
name,
properties,
type
FROM azure.cosmos_db.cassandra_data_center
WHERE clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new cassandra_data_center
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.cosmos_db.cassandra_data_center (
clusterName,
dataCenterName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ clusterName }}',
'{{ dataCenterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: properties
value:
- name: provisioningState
value: []
- name: dataCenterLocation
value: string
- name: delegatedSubnetId
value: string
- name: nodeCount
value: integer
- name: seedNodes
value:
- - name: ipAddress
value: string
- name: base64EncodedCassandraYamlFragment
value: string
- name: managedDiskCustomerKeyUri
value: string
- name: backupStorageCustomerKeyUri
value: string
- name: sku
value: string
- name: diskSku
value: string
- name: diskCapacity
value: integer
- name: availabilityZone
value: boolean
- name: authenticationMethodLdapProperties
value:
- name: serverHostname
value: string
- name: serverPort
value: integer
- name: serviceUserDistinguishedName
value: string
- name: serviceUserPassword
value: string
- name: searchBaseDistinguishedName
value: string
- name: searchFilterTemplate
value: string
- name: serverCertificates
value:
- - name: pem
value: string
- name: connectionTimeoutInMs
value: integer
- name: deallocated
value: boolean
- name: provisionError
value:
- name: code
value: string
- name: message
value: string
- name: target
value: string
- name: additionalErrorInfo
value: string
- name: privateEndpointIpAddress
value: string
UPDATE
example
Updates a cassandra_data_center
resource.
/*+ update */
UPDATE azure.cosmos_db.cassandra_data_center
SET
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND dataCenterName = '{{ dataCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified cassandra_data_center
resource.
/*+ delete */
DELETE FROM azure.cosmos_db.cassandra_data_center
WHERE clusterName = '{{ clusterName }}'
AND dataCenterName = '{{ dataCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';