Skip to main content
PUT
/
sandboxes
/
{sandboxID}
/
network
cURL
curl --request PUT \
  --url https://api.e2b.app/sandboxes/{sandboxID}/network \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "allowOut": [
    "<string>"
  ],
  "denyOut": [
    "<string>"
  ]
}
'
{
  "code": 123,
  "message": "<string>"
}

Authorizations

X-API-Key
string
header
required

Path Parameters

sandboxID
string
required

Body

application/json
allowOut
string[]

List of allowed destinations for egress traffic. Each entry can be a CIDR block (e.g. "8.8.8.8/32"), a bare IP address (e.g. "8.8.8.8"), or a domain name (e.g. "example.com", "*.example.com"). Allowed entries always take precedence over denied entries.

denyOut
string[]

List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.

Response

Successfully updated the sandbox network configuration