Get instance
⚠️ This endpoint is in public preview.
Retrieve an instance by ID or name.
Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Path Parameters
A resource path like 'sfc:instance:acme:prod:my-instance' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
(inst_[0-9a-zA-Z_-]{1,21}|vm_[0-9a-zA-Z_-]{1,21})|(sfc:instance:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){2,2})"inst_k3R-nX9vLm7Qp2Yw5Jd8F"
Response
Instance details.
Accepts the canonical prefix below; additional legacy prefixes are aliased for read compatibility. Writes always emit the canonical form.
inst_[0-9a-zA-Z_-]{1,21}"inst_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path for a instance resource. Format: sfc:instance:::.
sfc:instance:([a-zA-Z0-9._-]+:){2}[a-zA-Z0-9._-]+"sfc:instance:<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"
"instance"awaiting_allocation when waiting for compute allocation on its capacity, running once assigned and the physical machine is running (still takes time for the image to be downloaded and booted), terminated when stopped by the user or after running out of allocation, failed on hardware fault.
awaiting_allocation, running, terminated, failed Capacity this instance is utilizing.
Unix timestamp.
1738972800
Image this instance was launched from.
Whether cloud-init user data is configured for this instance.
Instance SKU this instance is running on. Only present when assigned to a physical machine. Carries the SKU's human-readable name when one is registered.
Deployment managing this instance, if any.
Base64-encoded cloud-init user data.
"IyEvYmluL2Jhc2gKZWNobyBoZWxsbyB3b3JsZAo="
Metadata tags attached to this instance.
{ "env": "prod", "team": "infra" }Predicted Unix timestamp at which this node will be terminated because its capacity drops below the count of running nodes. null if no shutdown is scheduled in the predictable horizon — either the capacity covers this node indefinitely, or a future capacity increase blocks the prediction. Recomputed on every read.
1738972800
Instance priority. Lower-priority instances are terminated first when the capacity's quota drops below the running-instance count.
yield, normal, preferred, critical