pydo.droplet_actions.post_by_tag()
Generated on 8 May 2026
from pydo version
v0.34.0
Usage
client.droplet_actions.post_by_tag(
tag_name=None,
body={
"type": "reboot",
"name": "Nifty New Snapshot",
},
)Description
Some actions can be performed in bulk on tagged Droplets. The actions can be
initiated by sending a POST to /v2/droplets/actions?tag_name=$TAG_NAME with
the action arguments.
Only a sub-set of action types are supported:
power_cyclepower_onpower_offshutdownenable_ipv6enable_backupsdisable_backupssnapshot(also requiresimage:createpermission)
Parameters
tag_namestring optionalUsed to filter Droplets by a specific tag. Can not be combined with
nameortype.
Requirestag:readscope.typestring requiredThe type of action to initiate for the Droplet.
namestring optionalExample:
Nifty New SnapshotThe name to give the new snapshot of the Droplet.
Request Sample
Response Example
More Information
See /v2/droplets/actions in the API reference for additional detail on responses, headers, parameters, and more.