ProximityPlacementGroupCollection.CreateOrUpdateAsync Methode

Definition

Erstellen oder Aktualisieren einer Näherungsplatzierungsgruppe.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}
  • Vorgang IdProximityPlacementGroups_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.ProximityPlacementGroupResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string proximityPlacementGroupName, Azure.ResourceManager.Compute.ProximityPlacementGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.ProximityPlacementGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.ProximityPlacementGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.ProximityPlacementGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.ProximityPlacementGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, proximityPlacementGroupName As String, data As ProximityPlacementGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ProximityPlacementGroupResource))

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.

proximityPlacementGroupName
String

Der Name der Näherungsplatzierungsgruppe.

data
ProximityPlacementGroupData

Parameter, die für den Vorgang Näherungsplatzierungsgruppe erstellen bereitgestellt werden.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

proximityPlacementGroupName oder data ist NULL.

Gilt für: