pydo.droplet_actions.list()
Generated on 9 Jun 2026
from pydo version
v0.36.0
Usage
client.droplet_actions.list(
droplet_id=3164444,
per_page=20,
page=1,
)Description
To retrieve a list of all actions that have been executed for a Droplet, send
a GET request to /v2/droplets/{droplet_id}/actions.
The results will be returned as a JSON object with an actions key. This will
be set to an array filled with action objects containing the standard
action attributes.
Parameters
droplet_idinteger requiredA unique identifier for a Droplet instance.
per_pageinteger optionalNumber of items returned per page
pageinteger optionalWhich 'page' of paginated results to return.
Request Sample
Pagination
This method returns paginated results. The response includes a
links.pages object with URLs for navigating between pages. To
retrieve the next page, parse the next URL and pass the page
parameter:
from urllib.parse import urlparse, parse_qs
resp = client.droplet_actions.list(droplet_id=3164444, )
pages = resp.get("links", {}).get("pages", {})
while "next" in pages:
parsed = urlparse(pages["next"])
page = int(parse_qs(parsed.query)["page"][0])
resp = client.droplet_actions.list(droplet_id=3164444, page=page)
pages = resp.get("links", {}).get("pages", {})Response Example
More Information
See /v2/droplets/{droplet_id}/actions in the API reference for additional detail on responses, headers, parameters, and more.