Language

PaymentHsmClusterCollection.CreateOrUpdate Method

Definition

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

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/paymentHsmClusters/{paymentHsmClusterName}.
  • Operation Id. : PaymentHsmClusters_CreateOrUpdate.
  • Default Api Version. : 2025-12-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.PaymentHsmClusterResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string paymentHsmClusterName, Azure.ResourceManager.HardwareSecurityModules.PaymentHsmClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.HardwareSecurityModules.PaymentHsmClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.PaymentHsmClusterResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.HardwareSecurityModules.PaymentHsmClusterData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.PaymentHsmClusterResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, paymentHsmClusterName As String, data As PaymentHsmClusterData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of PaymentHsmClusterResource)

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.

paymentHsmClusterName
String

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

data
PaymentHsmClusterData

Parameters to create Payment HSM Cluster.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

paymentHsmClusterName or data is null.

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

Applies to