Instances
post/preview/v2/instances
Request
- Base URLhttps://api.sfcompute.com
- URLhttps://api.sfcompute.com/preview/v2/instances
- AuthHTTP bearer
Request body
Example request
{
"name": "my-resource-name",
"capacity": "cap_k3R-nX9vLm7Qp2Yw5Jd8F",
"image": "image_k3R-nX9vLm7Qp2Yw5Jd8F",
"cloud_init_user_data": "IyEvYmluL2Jhc2gKZWNobyBoZWxsbyB3b3JsZAo=",
"tags": {
"env": "prod",
"team": "infra"
}
}Response
Instance created.
Example response
{
"id": "inst_k3R-nX9vLm7Qp2Yw5Jd8F",
"resource_path": "sfc:instance:<account_id>:<workspace>:<name>",
"owner": "my-resource-name",
"workspace": "my-resource-name",
"name": "my-resource-name",
"object": "instance",
"instance_sku": {
"id": "isku_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"capacity": {
"id": "cap_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"created_at": 1738972800,
"image": {
"id": "image_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"deployment": {
"id": "depl_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
},
"cloud_init_user_data": "IyEvYmluL2Jhc2gKZWNobyBoZWxsbyB3b3JsZAo=",
"tags": {
"env": "prod",
"team": "infra"
},
"expected_shutdown_at": 1738972800
}Changes
- warning
removed the request property
- info
added the new optional request property
- warning
- info
endpoint added
- info