Policies
Was this helpful?
Was this helpful?
Retrieves a list of all policy configurations
Must be set to 'true' to retrieve the list
GET /v1/auth/ratls/policies/ HTTP/1.1
Host: localhost:8200
Accept: */*
Policy list retrieved successfully
{
"request_id": "text",
"lease_id": "text",
"renewable": true,
"lease_duration": 1,
"data": {
"keys": [
"text"
]
},
"wrap_info": null,
"warnings": null,
"auth": null
}
Retrieves detailed information about a specific policy
Policy name
GET /v1/auth/ratls/policies/{name} HTTP/1.1
Host: localhost:8200
Accept: */*
{
"request_id": "text",
"lease_id": "text",
"renewable": true,
"lease_duration": 1,
"data": {
"created": 1,
"identities": {
"firmware": [
{
"name": "text",
"policy": {
"ANY_ADDITIONAL_PROPERTY": true
}
}
],
"metadata": {
"name": "text",
"policy": null
},
"platform": null,
"provider": "text",
"workload": {
"name": "text",
"policy": {
"ANY_ADDITIONAL_PROPERTY": true
}
}
},
"name": "text"
},
"wrap_info": null,
"warnings": null,
"auth": null
}
Removes a specific policy configuration
Policy name
DELETE /v1/auth/ratls/policies/{name} HTTP/1.1
Host: localhost:8200
Accept: */*
{
"request_id": "text",
"lease_id": "text",
"renewable": true,
"lease_duration": 1,
"data": {},
"wrap_info": null,
"warnings": null,
"auth": null
}
Updates an existing policy configuration
Creation timestamp, set by the plugin
A map of all identity types with their respective selector
{"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}
Name of the policy
POST /v1/auth/ratls/policies HTTP/1.1
Host: localhost:8200
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"created": 1,
"identities": {},
"name": "text"
}
{
"auth": {},
"data": {
"created": 1,
"identities": {},
"name": "text"
}
}
Creates a new policy configuration
Creation timestamp, set by the plugin
A map of all identity types with their respective selector
{"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}
Name of the policy
PUT /v1/auth/ratls/policies HTTP/1.1
Host: localhost:8200
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"created": 1,
"identities": {},
"name": "text"
}
{
"auth": {},
"data": {
"created": 1,
"identities": {},
"name": "text"
}
}