Get team egress settings
curl --request GET \
--url https://api.compute.anonalabs.com/v1/network \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/network"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/network', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tier": "paid",
"limits": {
"internetAllowed": true,
"defaultInternet": true,
"allowCustomDNS": true,
"maxAllowOut": 123,
"maxDomainAllows": 123,
"maxDenyOut": 123,
"maxRules": 123
},
"revision": 123,
"spec": {
"allow_internet_access": true,
"allowOut": [
"<string>"
],
"denyOut": [
"<string>"
],
"dnsServers": [
"<string>"
],
"rules": {},
"allowPublicTraffic": true
},
"compiled": {
"allow_internet_access": true,
"allowOut": [
"<string>"
],
"denyOut": [
"<string>"
]
},
"ceiling": {},
"warnings": [
"<string>"
]
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Network
Get team egress settings
The organization’s default egress policy for new sandboxes (used when neither the create request nor the template has one), what it compiles to under your plan, and the plan’s limits. Any role or key may read it.
GET
/
v1
/
network
Get team egress settings
curl --request GET \
--url https://api.compute.anonalabs.com/v1/network \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/network"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.compute.anonalabs.com/v1/network', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"tier": "paid",
"limits": {
"internetAllowed": true,
"defaultInternet": true,
"allowCustomDNS": true,
"maxAllowOut": 123,
"maxDomainAllows": 123,
"maxDenyOut": 123,
"maxRules": 123
},
"revision": 123,
"spec": {
"allow_internet_access": true,
"allowOut": [
"<string>"
],
"denyOut": [
"<string>"
],
"dnsServers": [
"<string>"
],
"rules": {},
"allowPublicTraffic": true
},
"compiled": {
"allow_internet_access": true,
"allowOut": [
"<string>"
],
"denyOut": [
"<string>"
]
},
"ceiling": {},
"warnings": [
"<string>"
]
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
An Anona Compute API key (e2b_ followed by lowercase hex).
Response
The settings. revision is 0 and spec is {} when they were never set.
Example:
"paid"
Show child attributes
Show child attributes
An egress policy in the E2B wire shape. Unknown keys are refused.
Show child attributes
Show child attributes
The policy as the engine enforces it.
Show child attributes
Show child attributes