Create instance
Create an instance.
Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/dashboard/tokens.
Body
A resource path like 'sfc:pool:acme:prod:my-pool' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
(pool_[0-9a-zA-Z_-]{1,21})|(sfc:pool:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){2,2})"pool_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path like 'sfc:image:acme:prod:my-image' or an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.
(image_[0-9a-zA-Z_-]{1,21}|vmi_[0-9a-zA-Z_-]{1,21})|(sfc:image:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){2,2})"image_k3R-nX9vLm7Qp2Yw5Jd8F"
SKU this instance will run on, as a sku_-prefixed id. The instance is pinned to the SKU's underlying hardware pool at create time — it will not land on any other SKU. See GET /v2/skus to enumerate the SKUs visible to your account.
sku_[0-9a-zA-Z_-]{1,21}"sku_k3R-nX9vLm7Qp2Yw5Jd8F"
Base64-encoded cloud-init user data. Maximum 64KB.
"IyEvYmluL2Jhc2gKZWNobyBoZWxsbyB3b3JsZAo="
Preview. InfiniBand partition to join: an ibpart_ id, a resource path, or a partition name. A bare name is resolved within the pool's workspace, where partition names are unique; an id or a resource path resolves account-wide and is then checked against that workspace. Whichever form you use, the partition must belong to the pool's workspace and sit on the selected SKU's InfiniBand fabric. Available to accounts enrolled in the InfiniBand preview.
Preview. Whether to assign a public IPv4 address to this instance. When false (the default), only SSH (TCP port 22) is open on the instance and no other ports accept inbound traffic. When true, the chosen sku must advertise the SKU property public_ipv4 with value "yes".
Preview. Firewall to attach to this instance's public IP, e.g. sfc:firewall:acme:prod:default to use the workspace's auto-managed default firewall.
Required when _preview_enable_public_ipv4 = true; forbidden otherwise.
(frwl_[0-9a-zA-Z_-]{1,21})|(sfc:firewall:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){2,2})"frwl_k3R-nX9vLm7Qp2Yw5Jd8F"
Response
Instance created.
Identity block flattened into [InstanceResponse]. Response-only: handlers build it from the resolver's [crate::types::resource_path::InstanceScope] at the response boundary.
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.
Values are not exhaustive across API versions. Clients should tolerate new statuses.
awaiting_allocation, running, terminated, failed