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.securityREAD

API Documentation

Response Schema

{
  "scope_id": "<uuid>",
  "name": "<string>",
  "policy_metadata": {
    "policy_id": "<uuid>",
    "policy_name": "<string>"
  },
  "lifecycle_phase": "<string>",
  "workload_count": <number>
}

HEADERS

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

RESPONSES

status: OK

{&quot;scope_id&quot;:&quot;92aa9f26-dc59-4864-8c58-9be1230de9d5&quot;,&quot;name&quot;:&quot;demo scope&quot;,&quot;policy_metadata&quot;:{&quot;policy_id&quot;:&quot;5839f6b3-1760-4288-bf75-dbad8f81fbc2&quot;,&quot;policy_name&quot;:&quot;demo policy name&quot;},&quot;workload_count&quot;:0,&quot;lifecycle_phase&quot;:&quot;deployed&quot;}