Create an organization egress network policy
Create a custom egress network policy for an organization. Requires admin or owner role.
Create a custom egress network policy for an organization. Requires admin or owner role.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Organization name
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
CIDR ranges to allow
Domain patterns to allow (e.g. github.com, *.npmjs.org)
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)
Domain patterns to block. Takes precedence over allowed_domains (e.g. evil.example.com, *.tracker.net)
Human-readable name
length <= 128System policy to extend (e.g. tektona/dev)
Policy name (lowercase, alphanumeric, hyphens)
1 <= length <= 63Response Body
application/json
application/problem+json
curl -X POST "https://api-dev.tektona.ai/v1/orgs/string/egress-network-policies" \ -H "Content-Type: application/json" \ -d '{ "allowed_domains": [ "string" ], "name": "string" }'{ "$schema": "https://api-dev.tektona.ai/schemas/PolicyResponse.json", "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"}{ "$schema": "https://api-dev.tektona.ai/schemas/ErrorModel.json", "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"}