pydo.image_actions.post()
Generated on 9 Jun 2026
from pydo version
v0.36.0
Usage
client.image_actions.post(
image_id=62137902,
body={
"type": "convert",
"region": "nyc3",
},
)Description
The following actions are available on an Image.
Convert an Image to a Snapshot
To convert an image, for example, a backup to a snapshot, send a POST request
to /v2/images/{image_id}/actions. Set the type attribute to convert.
Transfer an Image
To transfer an image to another region, send a POST request to
/v2/images/{image_id}/actions. Set the type attribute to transfer and set
region attribute to the slug identifier of the region you wish to transfer
to.
Parameters
image_idinteger requiredA unique number that can be used to identify and reference a specific image.
typestring requiredThe action to be taken on the image. Can be either
convertortransfer.regionstring optionalThe slug identifier for the region where the resource will initially be available.
Request Sample
Response Example
More Information
See /v2/images/{image_id}/actions in the API reference for additional detail on responses, headers, parameters, and more.