PUT
Set a template's egress policy

Authorizations

X-API-Key
string
header
required

An Anona Compute API key (e2b_ followed by lowercase hex).

Path Parameters

templateID
string
required

Body

application/json

An egress policy in the E2B wire shape. Unknown keys are refused.

allow_internet_access
boolean
allowOut
string[]

IPs, CIDRs or host names to allow

denyOut
string[]

IPv4 addresses or CIDRs to block; 0.0.0.0/0 blocks all public egress

dnsServers
string[]
rules
object

Per-host header transforms: {host: [{transform: {headers: {Name: "Bearer ${vault.name}"}}}]}

allowPublicTraffic
boolean

Response

Stored and compiled.

scope
enum<string>
required
Available options:
tenant_default,
template,
sandbox,
tenant_ceiling
scopeID
string
required
revision
integer
required
compiled
object

The policy as the engine enforces it.

warnings
string[]