Freigeben über


WorkloadNetworkPortMirroringProfileCollection.CreateOrUpdateAsync Methode

Definition

Erstellen Sie ein Portspiegelungsprofil anhand der ID in einem Workloadnetzwerk in der privaten Cloud.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}
  • Vorgang IdWorkloadNetworks_CreatePortMirroring
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string portMirroringId, Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Avs.WorkloadNetworkPortMirroringProfileResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, portMirroringId As String, data As WorkloadNetworkPortMirroringProfileData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of WorkloadNetworkPortMirroringProfileResource))

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.

portMirroringId
String

NSX-Portspiegelungsbezeichner. Im Allgemeinen identisch mit dem Anzeigenamen der Portspiegelung.

data
WorkloadNetworkPortMirroringProfileData

NSX-Portspiegelung.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

portMirroringId oder data ist NULL.

Gilt für: