Configure pool + warm
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/sandboxes/pool \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"poolSize": 123,
"orphanTtlMs": 123,
"poolWaitMs": 123
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/sandboxes/pool"
payload = {
"poolSize": 123,
"orphanTtlMs": 123,
"poolWaitMs": 123
}
headers = {
"x-alibi-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-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({poolSize: 123, orphanTtlMs: 123, poolWaitMs: 123})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/sandboxes/pool', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": "<string>"
}{
"error": "<string>"
}Sandboxes
Configure pool + warm
POST
/
projects
/
{id}
/
sandboxes
/
pool
Configure pool + warm
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/sandboxes/pool \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"poolSize": 123,
"orphanTtlMs": 123,
"poolWaitMs": 123
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/sandboxes/pool"
payload = {
"poolSize": 123,
"orphanTtlMs": 123,
"poolWaitMs": 123
}
headers = {
"x-alibi-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-alibi-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({poolSize: 123, orphanTtlMs: 123, poolWaitMs: 123})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/sandboxes/pool', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
Response
Config + warm result
The response is of type object.