Skip to main content
POST
Create pool

Authorizations

Authorization
string
header
required

Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.

Body

application/json

Create a pool to hold compute.

workspace
string
required

Workspace to create this pool in.

Pattern: (wksp_[0-9a-zA-Z_-]{1,21})|(sfc:workspace:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,1})
Example:

"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"

name
null | string

Unique name for this pool.

Required string length: 1 - 255
Pattern: [a-zA-Z0-9][a-zA-Z0-9._-]{0,254}
Example:

"my-resource-name"

tags
null | object

Optional metadata tags for this pool.

Example:

Response

Pool created.

A pool — a container of owned compute allocation over time.

id
string
required
Pattern: pool_[0-9a-zA-Z_-]{1,21}
Example:

"pool_k3R-nX9vLm7Qp2Yw5Jd8F"

resource_path
string
required

A resource path for a pool resource. Format: sfc:pool:::.

Pattern: sfc:pool:([a-zA-Z0-9._-]+:){2}[a-zA-Z0-9._-]+
Example:

"sfc:pool:<account_id>:<workspace>:<name>"

workspace
object
required

Workspace this pool belongs to.

name
string
required
Required string length: 1 - 255
Pattern: [a-zA-Z0-9][a-zA-Z0-9._-]{0,254}
Example:

"my-resource-name"

object
string
default:pool
required
read-only

Discriminator for /pools responses.

Allowed value: "pool"
allocation_schedule
object
required

Allocation schedule of this pool. Add to the schedule by placing buy orders into this pool.

created_at
integer<int64>
required

Unix timestamp.

Example:

1738972800

_preview_procurements
object[]

Active procurements targeting this pool.

_preview_deployments
object[]

Active deployments targeting this pool.

tags
null | object

Metadata tags attached to this pool.

Example: