List all machines
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines \
--header 'Authorization: Bearer <token>'[
{
"id": "<string>",
"status": "creating",
"config": {
"vcpus": 123,
"memory_mb": 123,
"disk_mb": 123
},
"template": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {},
"started_at": "2023-11-07T05:31:56Z",
"timeout_ms": 123,
"timeout_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"remaining_ms": 123,
"timeout_action": "destroy",
"last_active_at": "2023-11-07T05:31:56Z",
"inactivity_timeout_ms": 123,
"auto_delete_after_ms": 123,
"ephemeral": true,
"cwd": "<string>",
"snapshot_id": "<string>",
"warm_pool_checkout": {
"source": "ready_instance",
"hit": true,
"id": "<string>",
"mode": "prefer"
}
}
]
Machines
List all machines
GET
/
v1
/
machines
List all machines
import requests
url = "https://api.13-215-85-171.sslip.io/v1/machines"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.13-215-85-171.sslip.io/v1/machines \
--header 'Authorization: Bearer <token>'[
{
"id": "<string>",
"status": "creating",
"config": {
"vcpus": 123,
"memory_mb": 123,
"disk_mb": 123
},
"template": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {},
"started_at": "2023-11-07T05:31:56Z",
"timeout_ms": 123,
"timeout_at": "2023-11-07T05:31:56Z",
"expires_at": "2023-11-07T05:31:56Z",
"remaining_ms": 123,
"timeout_action": "destroy",
"last_active_at": "2023-11-07T05:31:56Z",
"inactivity_timeout_ms": 123,
"auto_delete_after_ms": 123,
"ephemeral": true,
"cwd": "<string>",
"snapshot_id": "<string>",
"warm_pool_checkout": {
"source": "ready_instance",
"hit": true,
"id": "<string>",
"mode": "prefer"
}
}
]
Query Parameters
Response
List of machines. Calls without list filters, pagination, or field masks return the legacy bare array; filtered or paginated calls return a paginated object.
- object[]
- object