Get All Policies

GET {{cb_url}}/containers/v1/orgs/{{cb_org_key}}/guardrails/management/policies

This request returns the list of Container policies configured in the system. Policies are used to in order to define the misconfigurations, or rules we want to enforce on resources in the selected scope.

RBAC Permissions Required

Permission (.notation name)Operation(s)
kubernetes.securityREAD

API Documentation

Response Schema

[
  {
    "policy_id": "<uuid>",
    "name": "<string>",
    "status": "<string>",
    "creator": "<string>",
    "created_on": <integer>,
    "created_on_iso": "<string>",
    "modified_by": "<string>",
    "modified_on": <integer>,
    "modified_on_iso": "<string>",
    "scope_metadata": {
      "scope_id": "<uuid>",
      "scope_name": "<string>"
    },
    "exceptions_count": <integer>,
    "violations_count": <integer>
  }
]

HEADERS

KeyDatatypeRequiredDescription
X-AUTH-TOKENstring(Required) Carbon Black Access Key
Acceptstring

RESPONSES

status: OK

&quot;{\n    \&quot;items\&quot;: [\n      {\n          \&quot;policy_id\&quot;: \&quot;a12bc3d4-d1bb-4859-ad3d-da21efb2ca2f\&quot;,\n          \&quot;name\&quot;: \&quot;Demo Policy\&quot;,\n          \&quot;scope_metadata\&quot;: {\n              \&quot;scope_id\&quot;: \&quot;12a34b5c-519f-4580-8d95-78738075dc63\&quot;,\n              \&quot;scope_name\&quot;: \&quot;demo-scope\&quot;\n          },\n          \&quot;exceptions_count\&quot;: 1,\n          \&quot;creator\&quot;: \&quot;demouser@demoorg.com\&quot;,\n          \&quot;created_on\&quot;: 1655190366737,\n          \&quot;created_on_iso\&quot;: \&quot;2022-06-14T07:06:06.737Z\&quot;,\n          \&quot;modified_by\&quot;: \&quot;demouser@demoorg.com\&quot;,\n          \&quot;modified_on\&quot;: 1666703636607,\n          \&quot;modified_on_iso\&quot;: \&quot;2022-10-25T13:13:56.607Z\&quot;,\n          \&quot;status\&quot;: \&quot;enabled\&quot;\n}&quot;