Freigeben über


DdosProtectionPlanCollection.CreateOrUpdate Methode

Definition

Erstellt oder aktualisiert einen DDoS-Schutzplan.

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

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.

ddosProtectionPlanName
String

Der Name des DDoS-Schutzplans.

data
DdosProtectionPlanData

Parameter, die für den Erstellungs- oder Aktualisierungsvorgang bereitgestellt werden.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

ddosProtectionPlanName oder data ist NULL.

Gilt für: