Format
Most resource paths take 1 of 2 forms.sfc: prefix identifies the resource as belonging to SF Compute. The hierarchy moves from
broader scope (left) to narrower scope (right). Each segment contains only letters, numbers, and the
characters ., _, and -, so a colon always marks a segment boundary. Colons are URL-safe, so
resource paths can appear directly in URL path parameters without encoding.
Examples by resource type
IDs vs resource paths
Every resource has a stable ID (e.g.,pool_k3R-nX9vLm7Qp2Yw5Jd8F). IDs never change for the
lifetime of the resource. The API derives resource paths from the resource’s name, workspace, and
organization, so they change when any of those change. If you rename a pool from training-pool to
inference-pool, its ID stays the same but its resource path changes.
Use IDs for automation and integrations that need stable references. Use resource paths for
convenience in the CLI and ad-hoc API calls.
API responses include both.
Using resource paths in the CLI
The CLI accepts resource paths wherever you would use a name.Using resource paths in the API
Anywhere the API accepts a resource ID, it also accepts a resource path. This includes path parameters, request body fields, and query parameters. The API resolves a resource path to the underlying ID before processing the request. These 2 requests are equivalent.sku, take IDs only. For
example, this POST /v2/instances body references a pool and an image in another workspace by
resource path.
Next steps
- Workspaces explains the workspace layer that scopes most resource paths.
- Pools covers the pools these examples reference.
- Using the API covers authentication and request basics.