curl --request POST \
--url https://api.sfcompute.com/preview/v2/images/{id}/revoke \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"resource_path": "<string>",
"owner": "<string>",
"workspace": "<string>",
"name": "<string>",
"object": "image",
"upload_status": "started",
"created_at": 1738972800,
"provider": "<string>",
"sha256": "<string>"
}⚠️ This endpoint is in preview.
Revoke a private image. Revoked images can’t back new instances; existing instances continue running.
curl --request POST \
--url https://api.sfcompute.com/preview/v2/images/{id}/revoke \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"resource_path": "<string>",
"owner": "<string>",
"workspace": "<string>",
"name": "<string>",
"object": "image",
"upload_status": "started",
"created_at": 1738972800,
"provider": "<string>",
"sha256": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.sfcompute.com/llms.txt
Use this file to discover all available pages before exploring further.
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Image ID, name, or resource path 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})|(sfc:image:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){2,2})"image_k3R-nX9vLm7Qp2Yw5Jd8F"
Image revoked
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, revoked Unix timestamp.
1738972800
64^[a-f0-9]{64}$