다음을 통해 공유


LocalRulestackCollection.CreateOrUpdateAsync Method

Definition

Create a LocalRulestackResource

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