Sandboxes
Create a sandbox
Provisions a sandbox and returns once it is ready to accept commands. Pass an Idempotency-Key header to make retries safe: repeating a request with the same key returns the original sandbox instead of creating a second one.
post/sandboxes
Request
- Base URL: https://sandbox-as-a-service.com/v1
- URL: https://sandbox-as-a-service.com/v1/sandboxes
- Auth: HTTP bearer
Headers
Idempotency-Keystring
Client-generated key that makes this creation request safe to retry.
Request body
Example request
{
"snapshot_id": "snap_4b1d2e3f4a5b6c7d9e"
}Response
An existing sandbox was returned because the idempotency key was reused.
Example response
{
"id": "sbx_9f2c4a1b8d3e6f0a12",
"name": "data-cleaning-job",
"resources": {
"vcpu": 2,
"memory_gb": 4,
"disk_gb": 40
},
"timeout_minutes": 15
}Changes
No recorded changes to this operation across all 1 revision of this API.