pydo.reserved_ips.create()
Generated on 8 May 2026
from pydo version
v0.34.0
Usage
client.reserved_ips.create(
body={
"droplet_id": 2457247,
"region": "nyc3",
"project_id": "746c6152-2fa2-11ed-92d3-27aaa54e4988",
},
)Description
On creation, a reserved IP must be either assigned to a Droplet or reserved to a region.
-
To create a new reserved IP assigned to a Droplet, send a POST request to
/v2/reserved_ipswith thedroplet_idattribute. -
To create a new reserved IP reserved to a region, send a POST request to
/v2/reserved_ipswith theregionattribute.
Parameters
droplet_idinteger optionalExample:
2457247The ID of the Droplet that the reserved IP will be assigned to.
regionstring optionalExample:
nyc3The slug identifier for the region the reserved IP will be reserved to.
project_idstring optionalExample:
746c6152-2fa2-11ed-92d3-27aaa54e4988The UUID of the project to which the reserved IP will be assigned.
Request Sample
Response Example
More Information
See /v2/reserved_ips in the API reference for additional detail on responses, headers, parameters, and more.