List capacities
⚠️ This endpoint is in public preview.
List all capacities.
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.
Filter by workspace.
Filter by capacity ID, resource path, or name (repeatable).
[ "cap_k3R-nX9vLm7Qp2Yw5Jd8F" ]
Set to the response's cursor to fetch the next page.
Set to the response's cursor to fetch the previous page.
How many minutes of past schedule to include.
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 capacities.
Example response
{
"object": "list",
"cursor": "capc_gqXR7s0Kj5mHvE2wNpLc4Q",
"data": [
{
"id": "cap_k3R-nX9vLm7Qp2Yw5Jd8F",
"resource_path": "sfc:capacity:<account_id>:<workspace>:<name>",
"owner": "my-resource-name",
"workspace": "my-resource-name",
"name": "my-resource-name",
"object": "capacity",
"allocation_schedule": {
"total": [
{
"start_at": 1738972800,
"end_at": 1738972800
}
]
},
"procurements": [
{
"id": "proc_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
}
],
"deployments": [
{
"id": "depl_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
}
],
"created_at": 1738972800,
"tags": {
"env": "prod",
"team": "infra"
}
}
]
}Changes
Changed in 1 of the 44 revisions of this API.1
- ○
endpoint added
endpoint-added
This revision also has 20 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○