To retrieve a Droplet action, send a GET request to
/v2/droplets/$DROPLET_ID/actions/$ACTION_ID
.
The response will be a JSON object with a key called action
. The value will
be a Droplet action object.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
droplet_id |
integer | True | A unique identifier for a Droplet instance. | |
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.droplet_actions.get(droplet_id=3934132, action_id=2432342)
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.