Effective policy of a sandbox
curl --request GET \
--url https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/network/effective \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/network/effective"
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/sandboxes/{sandboxID}/network/effective', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sandboxID": "<string>",
"source": "sandbox",
"tier": "paid",
"policy": {
"allow_internet_access": true,
"allowOut": [
"<string>"
],
"denyOut": [
"<string>"
]
},
"warnings": [
"<string>"
]
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Network
Effective policy of a sandbox
The policy the sandbox runs with, and which layer it came from.
GET
/
v1
/
sandboxes
/
{sandboxID}
/
network
/
effective
Effective policy of a sandbox
curl --request GET \
--url https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/network/effective \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.compute.anonalabs.com/v1/sandboxes/{sandboxID}/network/effective"
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/sandboxes/{sandboxID}/network/effective', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sandboxID": "<string>",
"source": "sandbox",
"tier": "paid",
"policy": {
"allow_internet_access": true,
"allowOut": [
"<string>"
],
"denyOut": [
"<string>"
]
},
"warnings": [
"<string>"
]
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
An Anona Compute API key (e2b_ followed by lowercase hex).