Freigeben über


TrafficControllerCollection.CreateOrUpdateAsync Methode

Definition

Erstellen eines TrafficControllers

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}
  • Vorgangs-IdTrafficControllerInterface_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.TrafficControllerResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string trafficControllerName, Azure.ResourceManager.ServiceNetworking.TrafficControllerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ServiceNetworking.TrafficControllerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.TrafficControllerResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ServiceNetworking.TrafficControllerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceNetworking.TrafficControllerResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, trafficControllerName As String, data As TrafficControllerData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of TrafficControllerResource))

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.

trafficControllerName
String

Name des Datenverkehrscontrollers für den Pfad.

data
TrafficControllerData

Ressourcenerstellungsparameter.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

trafficControllerName oder data ist NULL.

Gilt für: