Skip to main content
PUT
Set a cluster's remediation scope

Authorizations

ankra_session
string
cookie
required

Browser session. Mutations also require X-Ankra-CSRF.

Headers

X-Ankra-CSRF
string
required

Must match the CSRF cookie.

Path Parameters

cluster_id
string<uuid>
required

Body

application/json
in_scope
boolean
required

false takes the cluster out of scope, true puts it back.

Response

The cluster's scope.

One cluster's place in the auto-remediation policy's cluster scope. in_scope says only whether the policy's cluster lists admit the cluster; whether remediation actually runs there also needs policy_enabled and an autonomy_level other than read_only.

cluster_id
string<uuid>
required
in_scope
boolean
required

true when the cluster lists admit the cluster.

scope_reason
enum<string>
required

Why: all_clusters when there is no allow list and the cluster is not excluded, listed when the allow list names it, excluded when the exclusion list names it (whatever the allow list says), not_listed when an allow list is set that does not name it.

Available options:
all_clusters,
listed,
excluded,
not_listed
policy_configured
boolean
required

false when the organisation has no policy row, so every other field is the default document.

policy_enabled
boolean
required
autonomy_level
enum<string>
required
Available options:
read_only,
propose,
auto
updated_at
string<date-time> | null
required

When the policy was last written; null exactly when policy_configured is false.