AttestationAdministrationClient.ResetPolicyAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resets the policy for the specified AttestationType to the default value.
public virtual System.Threading.Tasks.Task<Azure.Security.Attestation.AttestationResponse<Azure.Security.Attestation.PolicyModificationResult>> ResetPolicyAsync (Azure.Security.Attestation.AttestationType attestationType, Azure.Security.Attestation.AttestationTokenSigningKey signingKey = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ResetPolicyAsync : Azure.Security.Attestation.AttestationType * Azure.Security.Attestation.AttestationTokenSigningKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.Attestation.AttestationResponse<Azure.Security.Attestation.PolicyModificationResult>>
override this.ResetPolicyAsync : Azure.Security.Attestation.AttestationType * Azure.Security.Attestation.AttestationTokenSigningKey * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.Attestation.AttestationResponse<Azure.Security.Attestation.PolicyModificationResult>>
Public Overridable Function ResetPolicyAsync (attestationType As AttestationType, Optional signingKey As AttestationTokenSigningKey = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AttestationResponse(Of PolicyModificationResult))
Parameters
- attestationType
- AttestationType
AttestationType whose policy should be reset.
- signingKey
- AttestationTokenSigningKey
If provided, specifies the signing key used to sign the request to the attestation service.
- cancellationToken
- CancellationToken
Cancellation token used to cancel this operation.
Returns
An AttestationResponse<T> with the policy for the specified attestation type.
Remarks
If the signingKey
parameter is not provided, then the policy document sent to the attestation service will be unsigned. Unsigned attestation policies are only allowed when the attestation instance is running in AAD mode - if the attestation instance is running in Isolated mode, then a signing key and signing certificate MUST be provided to ensure that the caller of the API is authorized to change policy. The Certificate parameter MUST be one of the certificates returned by the GetPolicyManagementCertificates(CancellationToken) API.
Applies to
Azure SDK for .NET