Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure.event_hubs.clusters

Fields

NameDatatypeDescription
locationstringResource location.
propertiesobjectEvent Hubs Cluster properties supplied in responses in List or Get operations.
skuobjectSKU parameters particular to a cluster instance.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdGets the resource description of the specified Event Hubs Cluster.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists the available Event Hubs Clusters within an ARM resource group
list_by_subscriptionSELECTsubscriptionIdLists the available Event Hubs Clusters within an ARM resource group
create_or_updateINSERTclusterName, resourceGroupName, subscriptionIdCreates or updates an instance of an Event Hubs Cluster.
deleteDELETEclusterName, resourceGroupName, subscriptionIdDeletes an existing Event Hubs Cluster. This operation is idempotent.
updateUPDATEclusterName, resourceGroupName, subscriptionIdModifies mutable properties on the Event Hubs Cluster. This operation is idempotent.

SELECT examples

Lists the available Event Hubs Clusters within an ARM resource group

SELECT
location,
properties,
sku,
systemData,
tags
FROM azure.event_hubs.clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_hubs.clusters (
clusterName,
resourceGroupName,
subscriptionId,
sku,
properties,
location,
tags
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ sku }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a clusters resource.

/*+ update */
UPDATE azure.event_hubs.clusters
SET
sku = '{{ sku }}',
properties = '{{ properties }}',
location = '{{ location }}',
tags = '{{ tags }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified clusters resource.

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