Get Scope With Policy
GET {{cb_url}}/containers/v1/orgs/{{cb_org_key}}/guardrails/management/policies_scopes/{{cb_container_scope_id}}
This request returns the scope for a provided scope id, with the policy that is applied on it.
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": <number>
}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-AUTH-TOKEN | string | (Required) Carbon Black Access Key | |
Accept | string |
RESPONSES
status: OK
{"scope_id":"92aa9f26-dc59-4864-8c58-9be1230de9d5","name":"demo scope","policy_metadata":{"policy_id":"5839f6b3-1760-4288-bf75-dbad8f81fbc2","policy_name":"demo policy name"},"workload_count":0,"lifecycle_phase":"deployed"}