Network Policy

PUT /network-policy/subjects/{subject_kind}/{subject_id}/profile

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

Request body

egressstring nullable

open, restricted, none, or omitted for the kind's default.

ingressstring nullable

Response

The profile now in effect

egressstring required
egress_sourcestring required

default (the kind's) or override.

ingressstring required
ingress_sourcestring required

Example response

{
  "egress": "restricted",
  "ingress": "open"
}

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