Get All Scopes With Policies
GET {{cb_url}}/containers/v1/orgs/{{cb_org_key}}/guardrails/management/policies_scopes
Get the list of scopes configured in the system and the policy that is applied on each.
Can be used to determine what scope can be used when creating a new policy.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
kubernetes.security | READ |
Response Schema
[
{
"scope_id": "<uuid>",
"name": "<string>",
"policy_metadata": {
"policy_id": "<uuid>",
"policy_name": "<string>"
},
"lifecycle_phase": "<string>",
"workload_count": <integer>
}
]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-AUTH-TOKEN | string | (Required) Carbon Black Access Key | |
Accept | string |
RESPONSES
status: OK
{"items":[{"scope_id":"any-scope-id","name":"Any","policy_metadata":{"policy_id":"123a4b56-520f-411a-a146-3be26dfbbdbd","policy_name":"default"},"workload_count":117,"lifecycle_phase":"deployed"},{"scope_id":"123456a7-a607-4377-8ca3-d1020ad8fb85","name":"demo-scope","policy_metadata":{"policy_id":"a123bc56-ce51-4569-94a1-defa909e1615","policy_name":"demo-policy"},"workload_count":33,"lifecycle_phase":"any"}]}