Share via


LocalRulestackCollection.CreateOrUpdate Method

Definition

Create a LocalRulestackResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/localRulestacks/{localRulestackName}
  • Operation Id: LocalRulestacks_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string localRulestackName, Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, localRulestackName As String, data As LocalRulestackData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of LocalRulestackResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

localRulestackName
String

LocalRulestack resource name.

data
LocalRulestackData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

localRulestackName is an empty string, and was expected to be non-empty.

localRulestackName or data is null.

Applies to