Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

List the sandboxes

Returns every sandbox the tenant’s lunas have: those running on any node, and those kept while asleep or frozen. One that keeps nothing (persist: "none") is listed only while it runs.

GET/_luna/tenants/{tenant}/sandboxes
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Scopes:data:read
Path parameters
tenantstringrequired

The tenant, by its name.

Responses
200

The sandboxes, by luna and name.

sandboxesobject[]required

Each sandbox: type and key (its luna), name, state (running, frozen or asleep), cpu, memoryMib, diskUsedBytes, createdMs and lastUsedMs. A running one has startedMs. A stopped one has stoppedBy (idle, code, luna, api or crash) and stoppedMs.

truncatedbooleanrequired

More sandboxes than were listed.

default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://luna.example.com/_luna/tenants/string/sandboxes' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "sandboxes": [
    {}
  ],
  "truncated": true
}

Was this page helpful?