Поделиться через


SiteRecoveryReplicationProtectionClusterResourceCollection.CreateOrUpdateAsync Method

Definition

The operation to create an ASR replication protection cluster item.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectionClusters/{replicationProtectionClusterName}
  • Operation Id: ReplicationProtectionClusters_Create
  • Default Api Version: 2025-01-01
  • Resource: SiteRecoveryReplicationProtectionClusterResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryReplicationProtectionClusterResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string replicationProtectionClusterName, Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryReplicationProtectionClusterData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryReplicationProtectionClusterData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryReplicationProtectionClusterResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryReplicationProtectionClusterData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryReplicationProtectionClusterResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, replicationProtectionClusterName As String, data As SiteRecoveryReplicationProtectionClusterData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SiteRecoveryReplicationProtectionClusterResource))

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.

replicationProtectionClusterName
String

Replication protection cluster name.

data
SiteRecoveryReplicationProtectionClusterData

Create replication protection cluster Input.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

replicationProtectionClusterName or data is null.

Applies to