Sandboxes
/sandboxes
In: header
Query Parameters
Metadata query used to filter the sandboxes (e.g. "user=abc&app=prod"). Each key and values must be URL encoded.
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.vibengine.app/sandboxes"[
null
]{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes
In: header
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.vibengine.app/sandboxes" \ -H "Content-Type: application/json" \ -d '{ "templateID": "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"
}/v2/sandboxes
In: header
Query Parameters
Metadata query used to filter the sandboxes (e.g. "user=abc&app=prod"). Each key and values must be URL encoded.
Filter sandboxes by one or more states
Cursor to start the list from
Maximum number of items to return per page
100int321 <= value <= 100Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.vibengine.app/v2/sandboxes"[
null
]{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes/metrics
In: header
Query Parameters
Comma-separated list of sandbox IDs to get metrics for
items <= 100Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.vibengine.app/sandboxes/metrics?sandbox_ids=string"{
"sandboxes": {
"property1": {
"timestamp": "2019-08-24T14:15:22Z",
"timestampUnix": 0,
"cpuCount": 0,
"cpuUsedPct": 0.1,
"memUsed": 0,
"memTotal": 0,
"diskUsed": 0,
"diskTotal": 0
},
"property2": {
"timestamp": "2019-08-24T14:15:22Z",
"timestampUnix": 0,
"cpuCount": 0,
"cpuUsedPct": 0.1,
"memUsed": 0,
"memTotal": 0,
"diskUsed": 0,
"diskTotal": 0
}
}
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}/logs
In: header
Path Parameters
Query Parameters
Starting timestamp of the logs that should be returned in milliseconds
int640 <= valueMaximum number of logs that should be returned
1000int320 <= valueResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.vibengine.app/sandboxes/string/logs"{
"logs": [
{
"timestamp": "2019-08-24T14:15:22Z",
"line": "string"
}
],
"logEntries": [
{
"timestamp": "2019-08-24T14:15:22Z",
"message": "string",
"level": "debug",
"fields": {
"property1": "string",
"property2": "string"
}
}
]
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/v2/sandboxes/{sandboxID}/logs
In: header
Path Parameters
Query Parameters
Starting timestamp of the logs that should be returned in milliseconds
int640 <= valueMaximum number of logs that should be returned
1000int320 <= value <= 1000Direction of the logs that should be returned
"forward" | "backward"Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.vibengine.app/v2/sandboxes/string/logs"{
"logs": []
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://api.vibengine.app/sandboxes/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"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}
In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X DELETE "https://api.vibengine.app/sandboxes/string"{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}/metrics
In: header
Path Parameters
Query Parameters
Unix timestamp for the start of the interval, in seconds, for which the metrics
int640 <= valueUnix timestamp for the end of the interval, in seconds, for which the metrics
int640 <= valueResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.vibengine.app/sandboxes/string/metrics"[
{
"timestamp": "2019-08-24T14:15:22Z",
"timestampUnix": 0,
"cpuCount": 0,
"cpuUsedPct": 0.1,
"memUsed": 0,
"memTotal": 0,
"diskUsed": 0,
"diskTotal": 0
}
]{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}/pause
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.vibengine.app/sandboxes/string/pause"{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}/resume
In: header
Path Parameters
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.vibengine.app/sandboxes/string/resume" \ -H "Content-Type: application/json" \ -d '{}'{
"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"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}/connect
In: header
Path Parameters
Request Body
application/json
Timeout in seconds from the current time after which the sandbox should expire
int320 <= valueResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.vibengine.app/sandboxes/string/connect" \ -H "Content-Type: application/json" \ -d '{ "timeout": 0 }'{
"templateID": "string",
"sandboxID": "string",
"alias": "string",
"clientID": "string",
"envdVersion": "string",
"envdAccessToken": "string",
"trafficAccessToken": "string",
"domain": "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"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}/timeout
In: header
Path Parameters
Request Body
application/json
Timeout in seconds from the current time after which the sandbox should expire
int320 <= valueResponse Body
application/json
application/json
application/json
curl -X POST "https://api.vibengine.app/sandboxes/string/timeout" \ -H "Content-Type: application/json" \ -d '{ "timeout": 0 }'{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}/sandboxes/{sandboxID}/refreshes
In: header
Path Parameters
Request Body
application/json
Duration for which the sandbox should be kept alive in seconds
0 <= value <= 3600Response Body
application/json
application/json
curl -X POST "https://api.vibengine.app/sandboxes/string/refreshes" \ -H "Content-Type: application/json" \ -d '{}'{
"code": 0,
"message": "string"
}{
"code": 0,
"message": "string"
}