pydo.reserved_ips_actions.post()
Generated on 3 Aug 2026
from pydo version
v0.40.0
Usage
client.reserved_ips_actions.post(
reserved_ip="45.55.96.47",
body={
"type": "assign",
"droplet_id": 758604968,
},
)Description
To initiate an action on a reserved IP send a POST request to
/v2/reserved_ips/{reserved_ip}/actions. In the JSON body to the request,
set the type attribute to on of the supported action types:
| Action | Details |
|---|---|
assign |
Assigns a reserved IP to a Droplet |
unassign |
Unassign a reserved IP from a Droplet |
Parameters
reserved_ipstring requiredA reserved IP address.
typestring requiredThe type of action to initiate for the reserved IP.
droplet_idinteger optionalExample:
758604968The ID of the Droplet that the reserved IP will be assigned to.
Request Sample
Response Example
More Information
See /v2/reserved_ips/{reserved_ip}/actions in the API reference for additional detail on responses, headers, parameters, and more.