AttestationAdministrationClient.GetPolicy Method

Definition

Retrieves the attesttion policy for the specified AttestationType.

public virtual Azure.Security.Attestation.AttestationResponse<string> GetPolicy (Azure.Security.Attestation.AttestationType attestationType, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPolicy : Azure.Security.Attestation.AttestationType * System.Threading.CancellationToken -> Azure.Security.Attestation.AttestationResponse<string>
override this.GetPolicy : Azure.Security.Attestation.AttestationType * System.Threading.CancellationToken -> Azure.Security.Attestation.AttestationResponse<string>
Public Overridable Function GetPolicy (attestationType As AttestationType, Optional cancellationToken As CancellationToken = Nothing) As AttestationResponse(Of String)

Parameters

attestationType
AttestationType

AttestationType to retrive.

cancellationToken
CancellationToken

Cancellation token used to cancel this operation.

Returns

An AttestationResponse<T> with the policy for the specified attestation type.

Remarks

This API returns the underlying attestation policy object stored in the attestation service for this attestationType.

The actual service response to the API is an RFC 7519 JSON Web Token(see https://tools.ietf.org/html/rfc7519"). This token can be retrieved from Token. For the GetPolicy API, the body of the Token is a StoredAttestationPolicy object, NOT a string.

Applies to