Skip to main content

clusters

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

Overview

Nameclusters
TypeResource
Idazure.nexus.clusters

Fields

The following fields are returned by SELECT queries:

The resource has been successfully retrieved.

NameDatatypeDescription
extendedLocationobjectThe extended location of the cluster manager associated with the cluster. (title: ExtendedLocation represents the Azure custom location where the resource will be created.)
identityobjectThe identity for the resource.
locationstringThe geo-location where the resource lives
propertiesobjectThe list of the resource properties. (title: ClusterProperties represents the properties of a cluster.)
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, clusterNameGet properties of the provided cluster.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGet a list of clusters in the provided resource group.
list_by_subscriptionselectsubscriptionIdGet a list of clusters in the provided subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, clusterName, data__extendedLocation, data__propertiesCreate a new cluster or update the properties of the cluster if it exists.
updateupdatesubscriptionId, resourceGroupName, clusterNamePatch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently.
deletedeletesubscriptionId, resourceGroupName, clusterNameDelete the provided cluster.
continue_update_versionexecsubscriptionId, resourceGroupName, clusterNameTrigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update.
deployexecsubscriptionId, resourceGroupName, clusterNameDeploy the cluster using the rack configuration provided during creation.
scan_runtimeexecsubscriptionId, resourceGroupName, clusterNameTriggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance with the cluster configuration.

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
clusterNamestringThe name of the cluster.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get properties of the provided cluster.

SELECT
extendedLocation,
identity,
location,
properties,
tags
FROM azure.nexus.clusters
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
;

INSERT examples

Create a new cluster or update the properties of the cluster if it exists.

INSERT INTO azure.nexus.clusters (
data__extendedLocation,
data__identity,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
clusterName
)
SELECT
'{{ extendedLocation }}' /* required */,
'{{ identity }}',
'{{ properties }}' /* required */,
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ clusterName }}'
RETURNING
extendedLocation,
identity,
location,
properties,
tags
;

UPDATE examples

Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties and tag updates can be done independently.

UPDATE azure.nexus.clusters
SET
data__identity = '{{ identity }}',
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
RETURNING
extendedLocation,
identity,
location,
properties,
tags;

DELETE examples

Delete the provided cluster.

DELETE FROM azure.nexus.clusters
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND clusterName = '{{ clusterName }}' --required
;

Lifecycle Methods

Trigger the continuation of an update for a cluster with a matching update strategy that has paused after completing a segment of the update.

EXEC azure.nexus.clusters.continue_update_version 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@clusterName='{{ clusterName }}' --required
@@json=
'{
"machineGroupTargetingMode": "{{ machineGroupTargetingMode }}"
}'
;