/v2/floating_ipsCreate a floating IP
Creates a floating IP assigned to a Droplet or reserved to a region. Supply droplet_id to assign it to a Droplet, or supply region to reserve it; project_id can associate a region-reserved floating IP with a project. A 202 response returns the floating IP object and, when assigning it to a Droplet, links to the Droplet and assignment action.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Choose one creation mode: assign the floating IP to a Droplet with droplet_id, or reserve it to a region with region; project_id is available with the region option.
A 401 is returned when authentication fails because the credentials are invalid; a 429 indicates the API rate limit was exceeded; and a 500 indicates a server error. Provide either droplet_id or region as required by the selected request shape. When using region, project_id must be a UUID if supplied.