Create Sandbox from Image
Creates a new sandbox from a machine image.
Creates a new sandbox from a machine image.
Path Parameters
orgId*string
The organization ID
Request Body
application/json
imageId*string
The machine image ID to create sandbox from.
name*string
The name of the sandbox.
Length
1 <= length <= 100maxLifeSeconds*integer
The maximum life time of the sandbox in seconds.
Range
300 <= value <= 604800projectId?string
The project id to use for the sandbox. Use default if not provided.
Response Body
application/json
curl -X POST "https://loading/api/orgs/string/sandboxes/from-image" \ -H "Content-Type: application/json" \ -d '{ "imageId": "string", "name": "string", "maxLifeSeconds": 300 }'{
"sandbox": {
"id": "string",
"name": "string",
"expiredAt": "2019-08-24T14:15:22Z",
"expiresAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z",
"projectId": "string",
"shapeName": "string",
"status": "PENDING"
},
"bookId": "string"
}