curl --request POST \
--url https://api.sfcompute.com/v2/images \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace": "<string>",
"name": "my-resource-name"
}
'{
"id": "<string>",
"resource_path": "<string>",
"owner": "<string>",
"workspace": "<string>",
"name": "<string>",
"object": "image",
"upload_status": "started",
"created_at": 1738972800,
"sha256": "<string>"
}Create an image and start a multipart upload.
curl --request POST \
--url https://api.sfcompute.com/v2/images \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspace": "<string>",
"name": "my-resource-name"
}
'{
"id": "<string>",
"resource_path": "<string>",
"owner": "<string>",
"workspace": "<string>",
"name": "<string>",
"object": "image",
"upload_status": "started",
"created_at": 1738972800,
"sha256": "<string>"
}Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Start a multipart image upload. Max image size is 128 GiB.
Workspace to create this image in.
(wksp_[0-9a-zA-Z_-]{1,21})|(sfc:workspace:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,3})"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
Image created
image_[0-9a-zA-Z_-]{1,21}"image_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path for a image resource. Format: sfc:image:
sfc:image:([a-zA-Z0-9._-]+:){2}[a-zA-Z0-9._-]+"sfc:image:<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"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
"image"started, uploading, completed, failed Unix timestamp.
1738972800
64^[a-f0-9]{64}$