Sandboxes
Create, manage, and monitor sandbox environments
List all running sandboxes
In: header
Query Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/sandboxes"[
{
"workloadType": "compute",
"runtimeClass": "string",
"templateID": "string",
"alias": "string",
"sandboxID": "string",
"clientID": "string",
"startedAt": "2019-08-24T14:15:22Z",
"endAt": "2019-08-24T14:15:22Z",
"cpuCount": 1,
"memoryMB": 128,
"diskSizeMB": 0,
"metadata": {
"property1": "string",
"property2": "string"
},
"state": "running",
"envdVersion": "string",
"volumeMounts": [
{
"name": "string",
"path": "string"
}
]
}
]{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Create a sandbox
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/sandboxes" \ -H "Content-Type: application/json" \ -d '{ "templateID": "string" }'{
"workloadType": "compute",
"runtimeClass": "string",
"templateID": "string",
"sandboxID": "string",
"alias": "string",
"clientID": "string",
"envdVersion": "string",
"envdAccessToken": "string",
"trafficAccessToken": "string",
"domain": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}List sandboxes with pagination
In: header
Query Parameters
Cursor for pagination. Use the value from the X-Next-Token response header.
100int321 <= value <= 100Response Body
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/v2/sandboxes"[
{
"workloadType": "compute",
"runtimeClass": "string",
"templateID": "string",
"alias": "string",
"sandboxID": "string",
"clientID": "string",
"startedAt": "2019-08-24T14:15:22Z",
"endAt": "2019-08-24T14:15:22Z",
"cpuCount": 1,
"memoryMB": 128,
"diskSizeMB": 0,
"metadata": {
"property1": "string",
"property2": "string"
},
"state": "running",
"envdVersion": "string",
"volumeMounts": [
{
"name": "string",
"path": "string"
}
]
}
]{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Get sandbox detail
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/sandboxes/string"{
"workloadType": "compute",
"runtimeClass": "string",
"templateID": "string",
"alias": "string",
"sandboxID": "string",
"clientID": "string",
"startedAt": "2019-08-24T14:15:22Z",
"endAt": "2019-08-24T14:15:22Z",
"envdVersion": "string",
"envdAccessToken": "string",
"domain": "string",
"cpuCount": 1,
"memoryMB": 128,
"diskSizeMB": 0,
"metadata": {
"property1": "string",
"property2": "string"
},
"state": "running",
"volumeMounts": [
{
"name": "string",
"path": "string"
}
]
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Kill a sandbox
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://api.lelantos.ai/sandboxes/string"{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Set sandbox timeout
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.lelantos.ai/sandboxes/string/timeout" \ -H "Content-Type: application/json" \ -d '{ "timeout": 86400 }'{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Refresh sandbox TTL
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://api.lelantos.ai/sandboxes/string/refreshes" \ -H "Content-Type: application/json" \ -d '{}'{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Pause a sandbox
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/sandboxes/string/pause"{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Resume a sandbox
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/sandboxes/string/resume" \ -H "Content-Type: application/json" \ -d '{}'{
"workloadType": "compute",
"runtimeClass": "string",
"templateID": "string",
"sandboxID": "string",
"alias": "string",
"clientID": "string",
"envdVersion": "string",
"envdAccessToken": "string",
"trafficAccessToken": "string",
"domain": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Connect to a sandbox
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.lelantos.ai/sandboxes/string/connect" \ -H "Content-Type: application/json" \ -d '{ "timeout": 86400 }'{
"workloadType": "compute",
"runtimeClass": "string",
"templateID": "string",
"sandboxID": "string",
"alias": "string",
"clientID": "string",
"envdVersion": "string",
"envdAccessToken": "string",
"trafficAccessToken": "string",
"domain": "string"
}{
"workloadType": "compute",
"runtimeClass": "string",
"templateID": "string",
"sandboxID": "string",
"alias": "string",
"clientID": "string",
"envdVersion": "string",
"envdAccessToken": "string",
"trafficAccessToken": "string",
"domain": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Get sandbox logs
In: header
Path Parameters
Query Parameters
int641000int32Response Body
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/sandboxes/string/logs"{
"logs": [
{
"timestamp": "2019-08-24T14:15:22Z",
"line": "string"
}
]
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}Get sandbox metrics
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X GET "https://api.lelantos.ai/sandboxes/string/metrics"[
{
"timestamp": "2019-08-24T14:15:22Z",
"cpuCount": 0,
"cpuUsedPct": 0.1,
"memUsed": 0,
"memTotal": 0,
"diskUsed": 0,
"diskTotal": 0
}
]{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}