Skip to main content
PUT
Set Cluster Access Policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
creator_grant_role
enum<string>
required
Available options:
none,
view,
edit,
admin,
cluster-admin
max_grant_role
enum<string>
required
Available options:
view,
edit,
admin,
cluster-admin
elevated_max_ttl_seconds
integer | null

The longest a grant above view may last, in seconds: such a grant must expire, and no later than this from when it is created or re-timed. It is also the window a kube_access.elevate holder may give itself (4 hours when null). null clears the bound; omitting the field keeps the stored value.

Required range: 60 <= x <= 31536000
require_reason_from_role
enum<string> | null

The lowest role whose grants must carry a reason. null clears the bound; omitting the field keeps the stored value.

Available options:
view,
edit,
admin,
cluster-admin

Response

Successful Response

policy
ClusterAccessPolicy · object
required
organisation_id
string<uuid>
required

The organisation this policy belongs to: the one the request selected (a token's own unless X-Ankra-Organisation-Id names another, or the session's current organisation).

organisation_name
string | null
required

That organisation's name; null for an organisation without one.