Network Policy

PATCH /network-policy/nodes/{node_id}

Changed on

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

node_idinteger required

Node id; 0 is the control plane

Request body

modestring required

Example request

{
  "mode": "shadow"
}

Response

The node's mode now

enforcement_unavailable_reasonstring nullable

Why shadow/enforce is unavailable, when supports_enforcement is false.

modestring required

legacy (today's behaviour), shadow (computed and logged, not applied) or enforce.

namestring required
node_idinteger required

0 is the control plane.

rolestring required
statusstring required
supports_enforcementboolean required

Whether this node can run shadow or enforce: always on the control plane, on a worker while its agent reports an enforcer. A stored non-legacy mode on a node without one is never counted as enforcing.

Example response

{
  "mode": "legacy"
}

Changes

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    • breaking

      removed the required property extensions from the response with the status

    2 more changes in this revision