# Deny all egress, including DNS
CreateSandboxRequest(name="isolated", docker_image="python:3.11-slim", network_allowlist=[])
# Allow only specific destinations
CreateSandboxRequest(name="allow", docker_image="python:3.11-slim", network_allowlist=["api.openai.com"])
# Deny specific destinations, allow everything else
CreateSandboxRequest(name="deny", docker_image="python:3.11-slim", network_denylist=["evil.example.com"])