PolicyMetadataCollection.GetIfExistsAsync(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /providers/Microsoft.PolicyInsights/policyMetadata/{resourceName}
  • Operation Id: PolicyMetadata_GetResource
public virtual System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>> GetIfExistsAsync (string resourceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>>
override this.GetIfExistsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.NullableResponse<Azure.ResourceManager.PolicyInsights.PolicyMetadataResource>>
Public Overridable Function GetIfExistsAsync (resourceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of NullableResponse(Of PolicyMetadataResource))

Parameters

resourceName
String

The name of the policy metadata resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceName is null.

Applies to