Skip to main content

cloud_hsm_clusters

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

Overview

Namecloud_hsm_clusters
TypeResource
Idazure.hardware_security_modules.cloud_hsm_clusters

Fields

The following fields are returned by SELECT queries:

Retrieved Cloud HSM Cluster

NameDatatypeDescription
identityobjectManaged service identity (system assigned and/or user assigned identities)
propertiesobjectProperties of the Cloud HSM Cluster
skuobjectSKU details

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, cloudHsmClusterNameGets the specified Cloud HSM Cluster
list_by_resource_groupselectsubscriptionId, resourceGroupName$skiptokenThe List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group.
list_by_subscriptionselectsubscriptionId$skiptokenThe List operation gets information about the Cloud HSM Clusters associated with the subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, cloudHsmClusterNameCreate or Update a Cloud HSM Cluster in the specified subscription.
updateupdatesubscriptionId, resourceGroupName, cloudHsmClusterNameUpdate a Cloud HSM Cluster in the specified subscription.
deletedeletesubscriptionId, resourceGroupName, cloudHsmClusterNameDeletes the specified Cloud HSM Cluster
validate_backup_propertiesexecsubscriptionId, resourceGroupName, cloudHsmClusterNamePre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription.
backupexecsubscriptionId, resourceGroupName, cloudHsmClusterNameCreate a backup of the Cloud HSM Cluster in the specified subscription
validate_restore_propertiesexecsubscriptionId, resourceGroupName, cloudHsmClusterName, backupIdQueued validating pre restore operation
restoreexecsubscriptionId, resourceGroupName, cloudHsmClusterName, backupIdRestores all key materials of a specified Cloud HSM Cluster

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
cloudHsmClusterNamestringThe name of the Cloud HSM Cluster within the specified resource group. Cloud HSM Cluster names must be between 3 and 23 characters in length.
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.
$skiptokenstringThe page-continuation token to use with a paged version of this API

SELECT examples

Gets the specified Cloud HSM Cluster

SELECT
identity,
properties,
sku
FROM azure.hardware_security_modules.cloud_hsm_clusters
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND cloudHsmClusterName = '{{ cloudHsmClusterName }}' -- required
;

INSERT examples

Create or Update a Cloud HSM Cluster in the specified subscription.

INSERT INTO azure.hardware_security_modules.cloud_hsm_clusters (
data__properties,
data__identity,
data__sku,
subscriptionId,
resourceGroupName,
cloudHsmClusterName
)
SELECT
'{{ properties }}',
'{{ identity }}',
'{{ sku }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ cloudHsmClusterName }}'
RETURNING
identity,
properties,
sku
;

UPDATE examples

Update a Cloud HSM Cluster in the specified subscription.

UPDATE azure.hardware_security_modules.cloud_hsm_clusters
SET
data__tags = '{{ tags }}',
data__identity = '{{ identity }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND cloudHsmClusterName = '{{ cloudHsmClusterName }}' --required
RETURNING
identity,
properties,
sku;

DELETE examples

Deletes the specified Cloud HSM Cluster

DELETE FROM azure.hardware_security_modules.cloud_hsm_clusters
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND cloudHsmClusterName = '{{ cloudHsmClusterName }}' --required
;

Lifecycle Methods

Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription.

EXEC azure.hardware_security_modules.cloud_hsm_clusters.validate_backup_properties 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@cloudHsmClusterName='{{ cloudHsmClusterName }}' --required
@@json=
'{
"azureStorageBlobContainerUri": "{{ azureStorageBlobContainerUri }}",
"token": "{{ token }}"
}'
;