POST /v2/images/{image_id}/actions
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.
Servers
- https://api.digitalocean.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
image_id |
Integer | Yes |
A unique number that can be used to identify and reference a specific image. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.