Share via


LocalRulestackCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

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

Parameters

localRulestackName
String

LocalRulestack resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

localRulestackName is null.

Applies to