Create pool
⚠️ This endpoint is in public preview.
Create a pool to hold compute.
Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Body
Create a pool to hold compute.
Workspace to create this pool 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 pool.
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
Optional metadata tags for this pool.
{ "env": "prod", "team": "infra" }Response
Pool created.
A pool — a container of owned compute allocation over time.
Discriminator for /pools responses.
"pool"Accepts the canonical prefix below; additional legacy prefixes are aliased for read compatibility. Writes always emit the canonical form.
pool_[0-9a-zA-Z_-]{1,21}"pool_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path for a pool resource. Format: sfc:pool:::.
sfc:pool:([a-zA-Z0-9._-]+:){2}[a-zA-Z0-9._-]+"sfc:pool:<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"
Pool kind determines what operations are allowed on a pool.
Market: User-created pools. -Originating: Provider pools for selling compute. Cannot add compute (buy orders/procurements). -ReadOnly: System-managed pools used for legacy compute, bare metal contracts, and other. Cannot be modified through the API.
market, originating, read_only Allocation schedule of this pool. Add to the schedule by placing buy orders into this pool.
Unix timestamp.
1738972800
Active procurements targeting this pool.
Active deployments targeting this pool.
Metadata tags attached to this pool.
{ "env": "prod", "team": "infra" }