Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure_isv.connectedvmware.clusters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringGets or sets the Id.
namestringGets or sets the name.
customResourceNamestringGets the name of the corresponding resource in Kubernetes.
datastoreIdsarrayGets the datastore ARM ids.
extendedLocationobjectGets or sets the extended location.
inventoryItemIdstringGets or sets the inventory Item ID for the cluster.
kindstringMetadata 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.
locationstringGets or sets the location. Required.
moNamestringGets or sets the vCenter Managed Object name for the cluster.
moRefIdstringGets or sets the vCenter MoRef (Managed Object Reference) ID for the cluster.
networkIdsarrayGets the network ARM ids.
provisioningStatestringGets the provisioning state. Known values are: "Succeeded", "Failed", "Canceled", "Provisioning", "Updating", "Deleting", "Accepted", and "Created".
statusesarrayThe resource status information.
systemDataobjectThe system data.
tagsobjectGets or sets the Resource tags.
totalCpuMHzintegerGets the max CPU usage across all cores on the cluster in MHz.
totalMemoryGBintegerGets the total amount of physical memory on the cluster in GB.
typestringGets or sets the type of the resource.
usedCpuMHzintegerGets the used CPU usage across all cores on the cluster in MHz.
usedMemoryGBintegerGets the used physical memory on the cluster in GB.
uuidstringGets or sets a unique identifier for this resource.
vCenterIdstringGets or sets the ARM Id of the vCenter resource in which this cluster resides.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, cluster_name, subscription_idGets a cluster. Implements cluster GET method.
list_by_resource_groupselectresource_group_name, subscription_idImplements GET clusters in a resource group. List of clusters in a resource group.
listselectsubscription_idImplements GET clusters in a subscription. List of clusters in a subscription.
createinsertresource_group_name, cluster_name, subscription_id, locationImplements cluster PUT method. Create Or Update cluster.
updateupdateresource_group_name, cluster_name, subscription_idUpdates a cluster. API to update certain properties of the cluster resource.
deletedeleteresource_group_name, cluster_name, subscription_idforceDeletes an cluster. Implements cluster DELETE method.

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_namestringName of the cluster. Required.
resource_group_namestringThe Resource Group Name. Required.
subscription_idstring
forcebooleanWhether force delete was specified. Default value is None.

SELECT examples

Gets a cluster. Implements cluster GET method.

SELECT
id,
name,
customResourceName,
datastoreIds,
extendedLocation,
inventoryItemId,
kind,
location,
moName,
moRefId,
networkIds,
provisioningState,
statuses,
systemData,
tags,
totalCpuMHz,
totalMemoryGB,
type,
usedCpuMHz,
usedMemoryGB,
uuid,
vCenterId
FROM azure_isv.connectedvmware.clusters
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND cluster_name = '{{ cluster_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Implements cluster PUT method. Create Or Update cluster.

INSERT INTO azure_isv.connectedvmware.clusters (
location,
extendedLocation,
tags,
kind,
properties,
resource_group_name,
cluster_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ extendedLocation }}',
'{{ tags }}',
'{{ kind }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ cluster_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates a cluster. API to update certain properties of the cluster resource.

UPDATE azure_isv.connectedvmware.clusters
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
extendedLocation,
kind,
location,
properties,
systemData,
tags,
type;

DELETE examples

Deletes an cluster. Implements cluster DELETE method.

DELETE FROM azure_isv.connectedvmware.clusters
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND cluster_name = '{{ cluster_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND force = '{{ force }}'
;