CloudHsmClusterCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string cloudHsmClusterName, Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.HardwareSecurityModules.CloudHsmClusterResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, cloudHsmClusterName As String, data As CloudHsmClusterData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
Azure SDK for .NET