Create capacity
⚠️ This endpoint is in public preview.
Create a capacity to hold compute.
Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Body
Workspace to create this capacity in.
(wksp_[0-9a-zA-Z_-]{1,21})|(sfc:workspace:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,1})"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
Unique name for this capacity.
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
Optional metadata tags for this capacity.
{ "env": "prod", "team": "infra" }Response
Capacity created.
cap_[0-9a-zA-Z_-]{1,21}"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path for a capacity resource. Format: sfc:capacity:::.
sfc:capacity:([a-zA-Z0-9._-]+:){2}[a-zA-Z0-9._-]+"sfc:capacity:<account_id>:<workspace>:<name>"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
wksp_[0-9a-zA-Z_-]{1,21}"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
Capacity kind determines what operations are allowed on a capacity.
Market: User-created capacities. -Originating: Provider capacities for selling compute. Cannot add compute (buy orders/procurements). -ReadOnly: System-managed capacities used for legacy compute, bare metal contracts, and other. Cannot be modified through the API.
market, originating, read_only "capacity"Allocation schedule of this capacity. Add to the schedule by placing buy orders into this capacity.
Unix timestamp.
1738972800
Active procurements targeting this capacity.
Active deployments targeting this capacity.
Metadata tags attached to this capacity.
{ "env": "prod", "team": "infra" }