Maintenance May 12, 8–9 PM PDT (May 13, 03:00–04:00 UTC). ~1 min disruption to sandbox management may occur. Already running sandboxes will not be affected. Questions? Contact us
Maintenance May 12, 8–9 PM PDT (May 13, 03:00–04:00 UTC). ~1 min disruption to sandbox management may occur. Already running sandboxes will not be affected. Questions? Contact us
Update the network configuration for a running sandbox. Replaces the current egress rules with the provided configuration. Omitting both fields clears all egress rules.
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>"
}Documentation Index
Fetch the complete documentation index at: https://e2b-banner-hover-tooltip.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.
List of denied CIDR blocks or IP addresses for egress traffic. Domain names are not supported for deny rules.
Successfully updated the sandbox network configuration
Was this page helpful?
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>"
}