Policies

Update policy

post

Updates an existing policy configuration

Body
createdinteger · int64Required

Creation timestamp, set by the plugin

identitiesobject · mapRequired

A map of all identity types with their respective selector

Default: {"provider":"azure-sev-snp-vtpm","platform":null,"firmware":[{"name":"azure-dc2asv5","policy":null},{"name":"azure-dc4asv5","policy":null}],"workload":{"name":"azure-ubuntu","policy":{"pcrs.0":false}},"metadata":null}
namestringRequired

Name of the policy

Responses
200

Policy updated successfully

application/json
post
/v1/auth/ratls/policies

Create policy

put

Creates a new policy configuration

Body
createdinteger · int64Required

Creation timestamp, set by the plugin

identitiesobject · mapRequired

A map of all identity types with their respective selector

Default: {"provider":"azure-sev-snp-vtpm","platform":null,"firmware":[{"name":"azure-dc2asv5","policy":null},{"name":"azure-dc4asv5","policy":null}],"workload":{"name":"azure-ubuntu","policy":{"pcrs.0":false}},"metadata":null}
namestringRequired

Name of the policy

Responses
200

Policy created successfully

application/json
put
/v1/auth/ratls/policies

List all policies

get

Retrieves a list of all policy configurations

Query parameters
liststring · enumRequired

Must be set to 'true' to retrieve the list

Possible values:
Responses
200

Policy list retrieved successfully

application/json
get
/v1/auth/ratls/policies/
200

Policy list retrieved successfully

Get policy details

get

Retrieves detailed information about a specific policy

Path parameters
namestringRequired

Policy name

Responses
200

Policy details retrieved successfully

application/json
get
/v1/auth/ratls/policies/{name}

Delete policy

delete

Removes a specific policy configuration

Path parameters
namestringRequired

Policy name

Responses
200

Policy deleted successfully

application/json
delete
/v1/auth/ratls/policies/{name}

Last updated

Was this helpful?