Network Policy

GET /network-policy/subjects/{subject_kind}/{subject_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

subject_kindstring required

deployment, sandbox, service, function or job

subject_idinteger required

Environment id for deployments; row id otherwise

Response

What this workload may reach, and where it is enforced

enforcedboolean required
enforcing_nodesinteger[] required

Nodes whose mode is enforce. Empty: the policy is shown but not enforced anywhere yet (every node is legacy or shadow).

subject_idinteger required
subject_kindstring required

Example response

{
  "inbound_links": [
    {
      "action": "allow",
      "direction": "egress",
      "origin": "operator",
      "peer_kind": "service",
      "peer_ref": "12",
      "protocol": "tcp",
      "subject_kind": "sandbox"
    }
  ],
  "profile": {
    "egress": "restricted",
    "ingress": "open"
  },
  "rules": [
    {
      "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