For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
Usage
client.v2.reserved_ipv6.post(body: Reserved_ipv6_create, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Reserved_ipv6PostResponse>
Description
On creation, a reserved IPv6 must be reserved to a region.
- To create a new reserved IPv6 reserved to a region, send a POST request to
/v2/reserved_ipv6 with the region_slug attribute.
Parameters
regionSlug string required
Example: nyc3
The slug identifier for the region the reserved IPv6 will be reserved to.
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.reserved_ipv6.post({
regionSlug: "nyc3",
});
Response Example
Show Response Example
{
"reserved_ipv6": {
"ip": "2409:40d0:f7:1017:74b4:3a96:105e:4c6e",
"region_slug": "nyc3",
"reserved_at": "2024-11-20T11:08:30Z",
"droplet": null
}
}
See /v2/reserved_ipv6 in the API reference for additional detail on responses, headers, parameters, and more.