Share via


LocalRulestackCollection.GetIfExists(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 Azure.NullableResponse<Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackResource> GetIfExists (string localRulestackName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.PaloAltoNetworks.Ngfw.LocalRulestackResource>
Public Overridable Function GetIfExists (localRulestackName As String, Optional cancellationToken As CancellationToken = Nothing) As 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