Share via


CloudHsmClusterPrivateEndpointConnectionCollection.CreateOrUpdateAsync Method

Definition

Creates or updates the private endpoint connection for the Cloud Hsm Cluster.

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

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.

peConnectionName
String

Name of the private endpoint connection associated with the Cloud HSM Cluster.

data
CloudHsmClusterPrivateEndpointConnectionData

Parameters of the PrivateEndpointConnection.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

peConnectionName or data is null.

Applies to