GET /v1/agents/runtime
from gravixlayer import GravixLayer
client = GravixLayer() # defaults to cloud="aws", region="us-east-1"
page = client.runtime.list(limit=100, offset=0)
print(f"Total runtimes: {page.total}")
for sandbox in page.runtimes:
print(sandbox.runtime_id, sandbox.status, sandbox.template)
import { GravixLayer } from 'gravixlayer';
const client = new GravixLayer(); // defaults to cloud="aws", region="us-east-1"
const page = await client.runtime.list({ limit: 100, offset: 0 });
console.log(`Total runtimes: ${page.total}`);
for (const sandbox of page.runtimes) {
console.log(sandbox.runtimeId, sandbox.status, sandbox.template);
}
gravixlayer runtime list --output json
# Pagination
gravixlayer runtime list --limit 100 --offset 0 --output json
curl -sS "https://api.gravixlayer.ai/v1/agents/runtime?limit=100&offset=0" \
-H "Authorization: Bearer $GRAVIXLAYER_API_KEY"
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Page size. Default: 100 |
offset | integer | No | Page offset. Default: 0 |
Response
| Field | Type | Description |
|---|---|---|
runtimes | list | List of Runtime objects |
total | integer | Total number of runtimes |