Skip to main content
POST
/
v1
/
vms
/
images
/
{image_id}
/
upload
Upload image data
curl --request POST \
  --url https://api.sfcompute.com/v1/vms/images/{image_id}/upload \
  --header 'Content-Type: application/json' \
  --data '{
  "part_id": 123
}'
{
  "upload_url": "<string>",
  "expires_at": "<string>"
}

Path Parameters

image_id
string
required

VM image ID

Body

application/json

Request body for image upload presigned URL generation

part_id
integer<int32>
required

part idx (1-based)

Response

Response body for image upload presigned URL generation

upload_url
string
required

The presigned URL that can be used to upload the image part

expires_at
string
required

Timestamp when the presigned URL expires (RFC 3339 format)