Get All Scopes
GET {{cb_url}}/containers/v1/orgs/{{cb_org_key}}/guardrails/management/scopes
This request returns the list of scopes configured in the system.
Scopes are used to in order to define a list of resources we want to track.
RBAC Permissions Required
Permission (.notation name) | Operation(s) |
---|---|
kubernetes.security | READ |
Response Schema
{
"items": [
{
"scope_id": "<uuid>",
"scope_name": "<string>",
"creator": "<string>",
"created_on": <integer>,
"modified_by": "<string>",
"modified_on": <integer>,
"is_protected": <boolean>,
"lifecycle_phase": "<string>",
"clusters_groups": [
"<string>"
],
"clusters": [
"<string>"
],
"namespaces": [
"<string>"
],
"grouping_type": "<string>",
"workloads_count": <integer>
}
]
}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-AUTH-TOKEN | string | (Required) Carbon Black Access Key | |
Accept | string |
RESPONSES
status: OK
{"items":[{"scope_id":"12a3bc4d-ee56-7f8g-a11b-2345cd67e89e","name":"Updated Demo Scope 01","creator":"","created_on":1683174576876,"created_on_iso":"2023-05-04T04:29:36.876Z","modified_by":"","modified_on":1683174635458,"modified_on_iso":"2023-05-04T04:29:36.876Z","lifecycle_phase":"build","is_protected":false,"clusters_groups":[],"clusters":["demo:cluster"],"namespaces":["*"],"grouping_type":"destination","workloads_count":0}]}