To retrieve the status of an image action, send a GET request to /v2/images/$IMAGE_ID/actions/$IMAGE_ACTION_ID
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
image_id |
integer | True | A unique number that can be used to identify and reference a specific image. | |
action_id |
integer | True | A unique numeric ID that can be used to identify and reference an action. |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.image_actions.get(action_id=36805527, image_id=7938269)
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.