Sandboxes
Refresh sandbox
Refresh the sandbox extending its time to live
POST
/
sandboxes
/
{sandboxID}
/
refreshes
Refresh sandbox
curl --request POST \
--url https://api.compute.anonalabs.com/sandboxes/{sandboxID}/refreshes \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"duration": 1800
}
'import requests
url = "https://api.compute.anonalabs.com/sandboxes/{sandboxID}/refreshes"
payload = { "duration": 1800 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({duration: 1800})
};
fetch('https://api.compute.anonalabs.com/sandboxes/{sandboxID}/refreshes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}⌘I
Refresh sandbox
curl --request POST \
--url https://api.compute.anonalabs.com/sandboxes/{sandboxID}/refreshes \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"duration": 1800
}
'import requests
url = "https://api.compute.anonalabs.com/sandboxes/{sandboxID}/refreshes"
payload = { "duration": 1800 }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({duration: 1800})
};
fetch('https://api.compute.anonalabs.com/sandboxes/{sandboxID}/refreshes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}{
"code": 123,
"message": "<string>",
"error_code": "<string>"
}