PolicyAttestationCollection.GetIfExists(String, CancellationToken) Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /{resourceId}/providers/Microsoft.PolicyInsights/attestations/{attestationName}
  • Operation Id: Attestations_GetAtResource
public virtual Azure.NullableResponse<Azure.ResourceManager.PolicyInsights.PolicyAttestationResource> GetIfExists (string attestationName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.PolicyInsights.PolicyAttestationResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.PolicyInsights.PolicyAttestationResource>
Public Overridable Function GetIfExists (attestationName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of PolicyAttestationResource)

Parameters

attestationName
String

The name of the attestation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

attestationName is null.

Applies to