Create sandbox
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/sandboxes \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"label": "<string>",
"provision": true
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/sandboxes"
payload = {
"label": "<string>",
"provision": True
}
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({label: '<string>', provision: true})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/sandboxes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"mode": "schema_prefix",
"dataPlane": "<string>",
"status": "warming",
"label": "<string>",
"sessionId": "<string>",
"recorder": "<string>",
"sql": {},
"redis": {},
"docker": {},
"k8s": {},
"branch": {},
"createdAt": "2023-11-07T05:31:56Z",
"checkedOutAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}Sandboxes
Create sandbox
mode must be schema_prefix | dedicated_db | docker_session | k8s_job | branch_db (not warm_pool — that is a checkout strategy).
POST
/
projects
/
{id}
/
sandboxes
Create sandbox
curl --request POST \
--url http://127.0.0.1:4100/api/projects/{id}/sandboxes \
--header 'Content-Type: application/json' \
--header 'x-alibi-api-key: <api-key>' \
--data '
{
"label": "<string>",
"provision": true
}
'import requests
url = "http://127.0.0.1:4100/api/projects/{id}/sandboxes"
payload = {
"label": "<string>",
"provision": True
}
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({label: '<string>', provision: true})
};
fetch('http://127.0.0.1:4100/api/projects/{id}/sandboxes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"projectId": "<string>",
"mode": "schema_prefix",
"dataPlane": "<string>",
"status": "warming",
"label": "<string>",
"sessionId": "<string>",
"recorder": "<string>",
"sql": {},
"redis": {},
"docker": {},
"k8s": {},
"branch": {},
"createdAt": "2023-11-07T05:31:56Z",
"checkedOutAt": "2023-11-07T05:31:56Z"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
Response
Created