Share via


CloudHsmClusterCollection.CreateOrUpdate Method

Definition

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}
  • Operation Id: CloudHsmClusters_CreateOrUpdate
  • Default Api Version: 2024-06-30-preview
  • Resource: CloudHsmClusterResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string cloudHsmClusterName, Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, cloudHsmClusterName As String, data As CloudHsmClusterData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of CloudHsmClusterResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

cloudHsmClusterName
String

The name of the Cloud HSM Cluster within the specified resource group. Cloud HSM Cluster names must be between 3 and 23 characters in length.

data
CloudHsmClusterData

Parameters to create Cloud HSM Cluster.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

cloudHsmClusterName is an empty string, and was expected to be non-empty.

cloudHsmClusterName or data is null.

Applies to