Skip to main content
PATCH
Update the OS patch policy

Authorizations

Authorization
string
header
required

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

Headers

x-ankra-organisation-id
string

PAT organisation override.

Path Parameters

cluster_id
string<uuid>
required

Body

application/json

A partial policy change: an omitted or null member keeps its stored value.

enabled
boolean | null
window_days
string[] | null
window_start_hour_utc
integer | null
window_duration_hours
integer | null
cadence_days
integer | null
include_stateful_nodes
boolean | null
security_lag_days
integer | null

Response

Successful response

The stored policy after a change, and what became of the update hold when the change turned it off.

enabled
boolean
required

Whether the window loop starts runs on its own.

window
OSPatchWindow · object
required

A recurring maintenance window in UTC, opening on each day at start_hour_utc.

cadence_days
integer
required

Minimum days between two automatic runs.

include_stateful_nodes
boolean
required

Whether a run drains nodes carrying single-replica stateful workloads.

security_lag_days
integer
required

Days held-back security updates may stay pending before the cluster reports a lag.

stored
boolean
required

False when nobody configured the cluster and the default policy applies.

window_description
string
required
window_open_now
boolean
required
next_window_opens_utc
string<date-time>
hold_revert
OSPatchHoldRevert · object

The removal of the node OS update hold, with the operation that carries it or why none started.

message
string