SandboxesEgress network policies
Create a project egress network policy
Create a custom egress network policy scoped to a project. Requires project admin role.
Authorization
apiKey AuthorizationBearer <token>
API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
org*string
Organization name
project*string
Project name
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
allowed_cidrs?array<string>|
CIDR ranges to allow
allowed_domains*array<string>|
Domain patterns to allow (e.g. github.com, *.npmjs.org)
denied_cidrs?array<string>|
CIDR ranges to block. A resolved IP in a denied range is blocked even when its domain is allowed (e.g. 169.254.0.0/16)
denied_domains?array<string>|
Domain patterns to block. Takes precedence over allowed_domains (e.g. evil.example.com, *.tracker.net)
display_name?string
Human-readable name
Match
^[^\x00-\x08\x0a-\x1f\x7f-\x9f--]*$Length
length <= 128extends?string
System policy to extend (e.g. tektona/dev)
name*string
Policy name (lowercase, alphanumeric, hyphens)
Length
1 <= length <= 63Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/orgs/string/projects/string/egress-network-policies" \ -H "Content-Type: application/json" \ -d '{ "allowed_domains": [ "string" ], "name": "string" }'{ "allowed_cidrs": [ "string" ], "allowed_domains": [ "string" ], "denied_cidrs": [ "string" ], "denied_domains": [ "string" ], "description": "string", "display_name": "string", "display_reference": "string", "extends": "string", "name": "string", "reference": "string"}{ "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}