Network Policy

GET /network-policy/rules/{rule_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

rule_idinteger required

Rule id

Response

The rule

actionstring required
created_atstring date-time required
created_byinteger nullable
descriptionstring nullable
directionstring required
enforceableboolean required

False for a host rule: hostname rules are enforced only by the shared egress proxy, which no node runs yet, so such a rule (stored before new ones were refused) is shown but never enforced.

idinteger required
link_idinteger nullable
link_tablestring nullable
originstring required

link rules are removed by unlinking, not deleted directly.

peer_kindstring required
peer_refstring required
port_endinteger nullable
port_startinteger nullable
protocolstring required
subject_idinteger required
subject_kindstring required
updated_atstring date-time required

Example response

{
  "action": "allow",
  "direction": "egress",
  "origin": "operator",
  "peer_kind": "service",
  "peer_ref": "12",
  "protocol": "tcp",
  "subject_kind": "sandbox"
}

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

    1 more change in this revision