Freigeben über


IPAllocationCollection.CreateOrUpdate Methode

Definition

Erstellt oder aktualisiert eine IpAllocation in der angegebenen Ressourcengruppe.

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

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.

ipAllocationName
String

Der Name der IpAllocation.

data
IPAllocationData

Parameter, die für den Vorgang zum Erstellen oder Aktualisieren des virtuellen Netzwerks bereitgestellt werden.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

ipAllocationName oder data ist NULL.

Gilt für: