Freigeben über


NetworkInterfaceTapConfigurationCollection.CreateOrUpdate Methode

Definition

Erstellt oder aktualisiert eine Tap-Konfiguration im angegebenen NetworkInterface.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}
  • Vorgang IdNetworkInterfaceTapConfigurations_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkInterfaceTapConfigurationResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string tapConfigurationName, Azure.ResourceManager.Network.NetworkInterfaceTapConfigurationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkInterfaceTapConfigurationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkInterfaceTapConfigurationResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkInterfaceTapConfigurationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkInterfaceTapConfigurationResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, tapConfigurationName As String, data As NetworkInterfaceTapConfigurationData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of NetworkInterfaceTapConfigurationResource)

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.

tapConfigurationName
String

Der Name der Tapkonfiguration.

data
NetworkInterfaceTapConfigurationData

Parameter, die für den Tapkonfigurationsvorgang zum Erstellen oder Aktualisieren angegeben werden.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

tapConfigurationName oder data ist NULL.

Gilt für: