pydo.reserved_ipv6_actions.post()
Generated on 17 Apr 2025
from pydo
version
v0.10.0
Description
To initiate an action on a reserved IPv6 send a POST request to
/v2/reserved_ipv6/$RESERVED_IPV6/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 IPv6 to a Droplet |
unassign |
Unassign a reserved IPv6 from a Droplet |
Parameters
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
reserved_ipv6 |
string | True | A reserved IPv6 address. | |
body |
JSON or IO[bytes] | False | The type attribute set in the request body will specify the action that |
|
will be taken on the reserved IPv6. | ||||
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
req={
"type": "unassign"
}
resp = client.reserved_ipv6s_actions.post(reserved_ipv6="2409:40d0:f7:1017:74b4:3a96:105e:4c6e", body=req)
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.