Freigeben über


ReplicationProtectedItemCollection.CreateOrUpdateAsync Methode

Definition

Der Vorgang zum Erstellen eines asr-replikationsgeschützten Elements (Replikation aktivieren).

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{resourceName}/replicationFabrics/{fabricName}/replicationProtectionContainers/{protectionContainerName}/replicationProtectedItems/{replicatedProtectedItemName}
  • Vorgang IdReplicationProtectedItems_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string replicatedProtectedItemName, Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProtectedItemCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProtectedItemCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.RecoveryServicesSiteRecovery.Models.ReplicationProtectedItemCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.RecoveryServicesSiteRecovery.ReplicationProtectedItemResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, replicatedProtectedItemName As String, content As ReplicationProtectedItemCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ReplicationProtectedItemResource))

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

replicatedProtectedItemName
String

Ein Name für das replikationsgeschützte Element.

content
ReplicationProtectedItemCreateOrUpdateContent

Aktivieren Sie die Schutzeingabe.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

replicatedProtectedItemName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

replicatedProtectedItemName oder content ist NULL.

Gilt für: