Freigeben über


WorkloadNetworkPortMirroringProfileCollection.CreateOrUpdate Methode

Definition

Erstellen Sie ein Portspiegelungsprofil nach ID in einem Workloadnetzwerk in einer privaten Cloud.

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

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der zeitintensive Vorgang für den Dienst abgeschlossen ist; Started , wenn sie nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführungszeit 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: