Skip to main content

policy

Creates, updates, deletes, gets or lists a policy resource.

Overview

Namepolicy
TypeResource
Idazure.security_attestation.policy

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
tokenstringAn RFC7519 JSON Web Token structure whose body is an PolicyResult object.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectattestation_type, endpointRetrieves the current policy for an attestation type. Retrieves the current policy for an attestation type.
setexecattestation_type, endpointSets the policy for a given attestation type. Sets the policy for a given attestation type.
resetexecattestation_type, endpointResets the attestation policy for the specified tenant and reverts to the default policy. Resets the attestation policy for the specified tenant and reverts to the default policy.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
attestation_typestringSpecifies the trusted execution environment to be used to validate the evidence. Known values are: "SgxEnclave", "OpenEnclave", "AzureGuest", "SevSnpVm", "Tpm", and "TdxVm". Required.
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )

SELECT examples

Retrieves the current policy for an attestation type. Retrieves the current policy for an attestation type.

SELECT
token
FROM azure.security_attestation.policy
WHERE attestation_type = '{{ attestation_type }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

Sets the policy for a given attestation type. Sets the policy for a given attestation type.

EXEC azure.security_attestation.policy.set 
@attestation_type='{{ attestation_type }}' --required,
@endpoint='{{ endpoint }}' --required
;