Reserved IP Reference

DigitalOcean reserved IPs are publicly-accessible static IP addresses that you can assign to Droplets and instantly remap between other Droplets in the same datacenter. Implement a failover mechanism with reserved IPs to build a high availability infrastructure.

Note
The Floating IP service is now called Reserved IPs. The Reserved IP service retains the same functionality as the prior service.

The DigitalOcean API

The DigitalOcean API lets you manage DigitalOcean resources programmatically using conventional HTTP requests. All the functionality available in the DigitalOcean Control Panel is also available through the API.

You can use the API to create, list, and delete reserved IP addresses. You can also manage specific reserved IP addresses using the API, such as assigning or unassigning them.

The DigitalOcean Command Line Client, doctl

doctl is a command-line interface for the DigitalOcean API and supports many of the same actions.

doctl supports managing reserved IP addresses from the command line. See the doctl documentation or use doctl compute reserved-ip --help for more information.