policy_certificates
Creates, updates, deletes, gets or lists a policy_certificates resource.
Overview
| Name | policy_certificates |
| Type | Resource |
| Id | azure.security_attestation.policy_certificates |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
token | string | RFC7519 JSON Web Token containing PolicyCertificatesResults object. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | endpoint | Retrieves the set of certificates used to express policy for the current tenant. Retrieves the set of certificates used to express policy for the current tenant. | |
add | exec | endpoint | Adds a new attestation policy certificate to the set of policy management certificates. Adds a new attestation policy certificate to the set of policy management certificates. | |
remove | exec | endpoint | Removes the specified policy management certificate. Note that the final policy management certificate cannot be removed. Removes the specified policy management certificate. Note that the final policy management certificate cannot be removed. |
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.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
SELECT examples
- get
Retrieves the set of certificates used to express policy for the current tenant. Retrieves the set of certificates used to express policy for the current tenant.
SELECT
token
FROM azure.security_attestation.policy_certificates
WHERE endpoint = '{{ endpoint }}' -- required
;
Lifecycle Methods
- add
- remove
Adds a new attestation policy certificate to the set of policy management certificates. Adds a new attestation policy certificate to the set of policy management certificates.
EXEC azure.security_attestation.policy_certificates.add
@endpoint='{{ endpoint }}' --required
;
Removes the specified policy management certificate. Note that the final policy management certificate cannot be removed. Removes the specified policy management certificate. Note that the final policy management certificate cannot be removed.
EXEC azure.security_attestation.policy_certificates.remove
@endpoint='{{ endpoint }}' --required
;