curl --request GET \
--url https://api.sfcompute.com/v2/capacities \
--header 'Authorization: Bearer <token>'{
"object": "list",
"has_more": true,
"data": [
{
"object": "capacity",
"id": "<string>",
"name": "<string>",
"zones": [
"richmond"
],
"allocation_schedule": {
"total": [
{
"effective_at": 1738972800,
"node_allocation": 123
}
],
"by_zone": {}
},
"created_at": 1738972800
}
],
"cursor": "capc_gqXR7s0Kj5mHvE2wNpLc4Q"
}List all capacities.
curl --request GET \
--url https://api.sfcompute.com/v2/capacities \
--header 'Authorization: Bearer <token>'{
"object": "list",
"has_more": true,
"data": [
{
"object": "capacity",
"id": "<string>",
"name": "<string>",
"zones": [
"richmond"
],
"allocation_schedule": {
"total": [
{
"effective_at": 1738972800,
"node_allocation": 123
}
],
"by_zone": {}
},
"created_at": 1738972800
}
],
"cursor": "capc_gqXR7s0Kj5mHvE2wNpLc4Q"
}Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Filter by capacity ID or name (repeatable).
An ID or name identifying this resource.
(cap_[0-9a-zA-Z_-]{1,21}) | ([a-zA-Z0-9][a-zA-Z0-9._-]{0,254})1 <= x <= 200Set to the response's cursor to fetch the next page.
^capc_[A-Za-z0-9_-]+$"capc_gqXR7s0Kj5mHvE2wNpLc4Q"
Set to the response's cursor to fetch the previous page.
^capc_[A-Za-z0-9_-]+$"capc_gqXR7s0Kj5mHvE2wNpLc4Q"