Freigeben über


FrontDoorWebApplicationFirewallPolicyCollection.CreateOrUpdate Methode

Definition

Erstellen oder aktualisieren Sie eine Richtlinie mit dem angegebenen Regelsatznamen innerhalb einer Ressourcengruppe.

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

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.

policyName
String

Der Name der Web Application Firewall richtlinie.

data
FrontDoorWebApplicationFirewallPolicyData

Zu erstellende Richtlinie.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

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

policyName oder data ist NULL.

Gilt für: