Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure_isv.connected_vsphere.clusters

Fields

NameDatatypeDescription
idtextGets or sets the Id.
nametextGets or sets the name.
clusterNametextfield from the properties object
custom_resource_nametextfield from the properties object
datastore_idstextfield from the properties object
extended_locationtextfield from the properties object
inventory_item_idtextfield from the properties object
kindtextMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
locationtextGets or sets the location.
mo_nametextfield from the properties object
mo_ref_idtextfield from the properties object
network_idstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statusestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextGets or sets the Resource tags.
total_cpu_m_hztextfield from the properties object
total_memory_gbtextfield from the properties object
typetextGets or sets the type of the resource.
used_cpu_m_hztextfield from the properties object
used_memory_gbtextfield from the properties object
uuidtextfield from the properties object
v_center_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTclusterName, resourceGroupName, subscriptionIdImplements cluster GET method.
listSELECTsubscriptionIdList of clusters in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList of clusters in a resource group.
createINSERTclusterName, resourceGroupName, subscriptionId, data__location, data__propertiesCreate Or Update cluster.
deleteDELETEclusterName, resourceGroupName, subscriptionIdImplements cluster DELETE method.
updateUPDATEclusterName, resourceGroupName, subscriptionIdAPI to update certain properties of the cluster resource.

SELECT examples

List of clusters in a subscription.

SELECT
id,
name,
clusterName,
custom_resource_name,
datastore_ids,
extended_location,
inventory_item_id,
kind,
location,
mo_name,
mo_ref_id,
network_ids,
provisioning_state,
resourceGroupName,
statuses,
subscriptionId,
system_data,
tags,
total_cpu_m_hz,
total_memory_gb,
type,
used_cpu_m_hz,
used_memory_gb,
uuid,
v_center_id
FROM azure_isv.connected_vsphere.vw_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_isv.connected_vsphere.clusters (
clusterName,
resourceGroupName,
subscriptionId,
data__location,
data__properties,
properties,
location,
extendedLocation,
systemData,
tags,
kind
)
SELECT
'{{ clusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ location }}',
'{{ extendedLocation }}',
'{{ systemData }}',
'{{ tags }}',
'{{ kind }}'
;

UPDATE example

Updates a clusters resource.

/*+ update */
UPDATE azure_isv.connected_vsphere.clusters
SET
tags = '{{ tags }}'
WHERE
clusterName = '{{ clusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified clusters resource.

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