v1
latestOpenAPI 3.1.02026-07-2665179189.7 KBList instances
⚠️ This endpoint is in public preview.
List all instances.
Query parameters
A resource path like 'sfc:workspace:acme:my-workspace' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
Scope the returned list to a single workspace (ID, resource path, or name). Without it, the returned list spans every workspace where the caller has Instance:List and Instance:Read (granted at either the workspace or organization level).
Filter by instance ID (repeatable).
[ "inst_k3R-nX9vLm7Qp2Yw5Jd8F" ]
Filter by pool (repeatable). Instances on any of the given pools match.
[ "pool_k3R-nX9vLm7Qp2Yw5Jd8F" ]
Filter by instance status (repeatable).
Filter to instances created at or after this Unix timestamp (seconds).
Filter to instances created at or before this Unix timestamp (seconds).
Filter by instance SKU (repeatable). Instances on any of the given SKUs match.
[ "isku_k3R-nX9vLm7Qp2Yw5Jd8F" ]
Cursor for forward pagination (from a previous response's cursor field).
Cursor for backward pagination.
Additional fields to include in the response.
Filter by tag key-value pair (repeatable). Format: key=value (the = between key and value must be percent-encoded in the URL).
Filter by tag key existence (repeatable). Returns resources that have a tag with this key, regardless of the value.
Response
Paginated list of instances.
Example response
{
"cursor": "nodec_gqXR7s0Kj5mHvE2wNpLc4Q",
"data": [
{
"id": "inst_k3R-nX9vLm7Qp2Yw5Jd8F",
"resource_path": "sfc:instance:<account_id>:<workspace>:<name>",
"owner": "my-resource-name",
"workspace": "my-resource-name",
"workspace_id": "wksp_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name",
"instance_sku": {
"id": "isku_k3R-nX9vLm7Qp2Yw5Jd8F",
"alias": "my-resource-name"
},
"capacity": {
"id": "cap_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"pool": {
"id": "pool_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"created_at": 1738972800,
"updated_at": 1738972800,
"image": {
"id": "image_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"managed_by": {
"id": "depl_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"cloud_init_user_data": "IyEvYmluL2Jhc2gKZWNobyBoZWxsbyB3b3JsZAo=",
"firewall": "frwl_k3R-nX9vLm7Qp2Yw5Jd8F",
"tags": {
"env": "prod",
"team": "infra"
},
"expected_shutdown_at": 1738972800
}
]
}