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

NameDatatypeDescription
activation_statetextfield from the properties object
auto_generated_domain_name_label_scopetextfield from the properties object
cloudHsmClusterNametextfield from the properties object
fips_approved_modetextfield from the properties object
hsmstextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
skutextCloud Hsm Cluster SKU information
status_messagetextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcloudHsmClusterName, resourceGroupName, subscriptionIdGets the specified Cloud HSM Cluster
list_by_resource_groupSELECTresourceGroupName, subscriptionIdThe List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group.
list_by_subscriptionSELECTsubscriptionIdThe List operation gets information about the Cloud HSM Clusters associated with the subscription.
create_or_updateINSERTcloudHsmClusterName, resourceGroupName, subscriptionIdCreate or Update a Cloud HSM Cluster in the specified subscription.
deleteDELETEcloudHsmClusterName, resourceGroupName, subscriptionIdDeletes the specified Cloud HSM Cluster
updateUPDATEcloudHsmClusterName, resourceGroupName, subscriptionIdUpdate a Cloud HSM Cluster in the specified subscription.
backupEXECcloudHsmClusterName, resourceGroupName, subscriptionIdCreate a backup of the Cloud HSM Cluster in the specified subscription
restoreEXECcloudHsmClusterName, resourceGroupName, subscriptionId, data__backupIdRestores all key materials of a specified Cloud HSM Cluster
validate_backup_propertiesEXECcloudHsmClusterName, resourceGroupName, subscriptionIdPre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription.
validate_restore_propertiesEXECcloudHsmClusterName, resourceGroupName, subscriptionId, data__backupIdQueued validating pre restore operation

SELECT examples

The List operation gets information about the Cloud HSM Clusters associated with the subscription.

SELECT
activation_state,
auto_generated_domain_name_label_scope,
cloudHsmClusterName,
fips_approved_mode,
hsms,
identity,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
sku,
status_message,
subscriptionId
FROM azure.hardware_security_modules.vw_cloud_hsm_clusters
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.hardware_security_modules.cloud_hsm_clusters (
cloudHsmClusterName,
resourceGroupName,
subscriptionId,
properties,
identity,
sku
)
SELECT
'{{ cloudHsmClusterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ sku }}'
;

UPDATE example

Updates a cloud_hsm_clusters resource.

/*+ update */
UPDATE azure.hardware_security_modules.cloud_hsm_clusters
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
cloudHsmClusterName = '{{ cloudHsmClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified cloud_hsm_clusters resource.

/*+ delete */
DELETE FROM azure.hardware_security_modules.cloud_hsm_clusters
WHERE cloudHsmClusterName = '{{ cloudHsmClusterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';