Egress policy

Set a workspace override of the egress policy (new immutable version)

Same body and validation as the project policy. Optional If-Match. 409 conflict (details.reason workspace_deleted) for deleted workspaces. 422 egress_widening (details {template_egress, outside: [hosts] | ["cidrs"] | ["allow_all"]}) when the workspace’s template egress ceiling would narrow the policy.

put/v1/workspaces/{workspace_id}/egress-policy

Request

  • Base URL: https://api.shardflux.dev
  • URL: https://api.shardflux.dev/v1/workspaces/{workspace_id}/egress-policy
  • Auth: HTTP bearer

Path parameters

workspace_idstring uuid required

UUIDv7, lowercase canonical form.

Headers

if-matchstring

Request body

mode'allow_all' | 'allowlist' | 'deny_all' required
cidrsstring[]

allowlist only; public ranges; at most 64.

Response

Default Response

organization_idstring uuid required

UUIDv7, lowercase canonical form.

project_idstring uuid required

UUIDv7, lowercase canonical form.

workspace_idstring uuid required

UUIDv7, lowercase canonical form.

versioninteger required

Current version number of the workspace override history (0 = none); send as If-Match.

Changes

No recorded changes to this operation across all 1 revision of this API.