Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure_isv.vmware.clusters

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
clusterNametextfield from the properties object
cluster_idtextfield from the properties object
hoststextfield from the properties object
privateCloudNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, privateCloudName, resourceGroupName, subscriptionId
listSELECTprivateCloudName, resourceGroupName, subscriptionId
create_or_updateINSERTclusterName, privateCloudName, resourceGroupName, subscriptionId, data__properties, data__sku
deleteDELETEclusterName, privateCloudName, resourceGroupName, subscriptionId
updateUPDATEclusterName, privateCloudName, resourceGroupName, subscriptionId

SELECT examples

SELECT
id,
name,
clusterName,
cluster_id,
hosts,
privateCloudName,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
type
FROM azure_isv.vmware.vw_clusters
WHERE privateCloudName = '{{ privateCloudName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.vmware.clusters (
clusterName,
privateCloudName,
resourceGroupName,
subscriptionId,
data__properties,
data__sku,
sku,
properties
)
SELECT
'{{ clusterName }}',
'{{ privateCloudName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ data__sku }}',
'{{ sku }}',
'{{ properties }}'
;

UPDATE example

Updates a clusters resource.

/*+ update */
UPDATE azure_isv.vmware.clusters
SET
properties = '{{ properties }}'
WHERE
clusterName = '{{ clusterName }}'
AND privateCloudName = '{{ privateCloudName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified clusters resource.

/*+ delete */
DELETE FROM azure_isv.vmware.clusters
WHERE clusterName = '{{ clusterName }}'
AND privateCloudName = '{{ privateCloudName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';