Get All Templates
GET {{cb_url}}/containers/v1/orgs/{{cb_org_key}}/guardrails/management/templates
This request returns the list of templates that can be used when creating policies.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
kubernetes.security | READ |
Response Schema
{
"items": [
{
"template_id": "<uuid>",
"name": "<string>",
"rules": [
{
"id": "<string>",
"action": "<string>"
}
],
"custom_template_metadata": {
"creator": "<string>",
"created_on_iso": "<string>"
}
}
]
}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-AUTH-TOKEN | string | (Required) Carbon Black Access Key | |
Accept | string |
RESPONSES
status: OK
{"items":[{"template_id":"cis-benchmark-1-6-0","name":"CiS benchmark 1.6.0","rules":[{"id":"privileged","action":"alert"},{"id":"privilege-escalation","action":"alert"},{"id":"seccomp-profile","action":"alert"},{"id":"additional-capabilities","action":"alert"},{"id":"host-namespace","action":"alert"},{"id":"cluster-role-binding","action":"alert"}],"custom_template_metadata":{"creator":"demouser@demoorg.com","created_on":1644579658878,"created_on_iso":"2022-02-11T11:40:58.878Z"}}]}