Skip to content
NimbusNexus

Floating IPs

A floating IP is a public IP address that belongs to your project, not to a specific VM. You reserve one on an external network, allocate it to a port on a VM, and it becomes that VM's public IP. Detach it later and reattach to a different VM — your traffic now goes to the new VM, without the address changing.

Why floating IPs exist

The default IP a VM gets is ephemeral — destroying the VM releases the IP back to the pool, and a recreated VM gets a new one. That's fine for stateless workers behind a load balancer. It's terrible for:

  • Anything addressed by DNS A/AAAA record (the record breaks on every VM recreate)
  • Anything in a partner's IP allowlist (the partner has to re-whitelist)
  • Blue/green deployments where you want to swing traffic between two warm VMs without DNS propagation

A floating IP solves all three. The IP outlives any specific VM; you swing it from one VM to another with a single API call.

Region scoping

Floating IPs are region-scoped. An IP comes from one region's external network and attaches only to ports in that region.

Billing

A floating IP bills at its own price from the moment it's created until it's deleted, attached or not. Attaching it to a VM doesn't fold it into the VM's cost. Pricing data has the current price.

The standard pattern: create the IP when you need it, attach it right away, and delete it when you're done.

IPv4 vs IPv6

There's no version field: an address comes from the external network you name in floating_network_id, and POST /api/v1/floating_ip/reserve can also take a specific ip_address. GET /api/v1/floating_ip/artifacts lists the external networks with each subnet's ip_version.

Each floating IP binds to one fixed IP on one port (vm_port_id and vm_ip_address), so a VM with several fixed IPs can carry one floating IP on each.

Attach / detach semantics

  • Attach is POST /api/v1/floating_ip/allocate, with the external network (floating_network_id), the port (vm_port_id) and its fixed IP (vm_ip_address). Pass floating_ip_id to attach an address you already have; without it, allocate creates a new one. GET /api/v1/floating_ip/artifacts?resource_id=<id> lists a VM's or a load balancer's ports.
  • Detach is POST /api/v1/floating_ip/deallocate. It doesn't release the IP; it just unbinds it from the VM. The IP keeps billing until you delete it, with DELETE /api/v1/floating_ip/ (its id in ids) or deallocate with delete: true.
  • Re-attaching the same IP to a different VM: this is exactly the failover path. Detach, attach to the new target, DNS doesn't change.

What's next

Reference

GET/api/v1/floating_ip/

Floating Ips List

Lists floating IPs visible to the project, resolving the attached compute, router, or load balancer.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/floating_ip/" \
  -H "Authorization: Bearer $NIMBUS_KEY"
DELETE/api/v1/floating_ip/

Delete Ips

Deletes a batch of floating IPs by their IDs.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
ids*array of string—

Responses

  • 204Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X DELETE "https://api.nimbusnexus.net/api/v1/floating_ip/" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "example"
    ]
  }'
POST/api/v1/floating_ip/allocate

Allocate Ip

Allocates a floating IP to a port, attaching a bandwidth-billed QoS policy and creating the billing order. An address passed as floating_ip_id keeps the plan it was reserved with.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
floating_network_idstring | nullRequired when allocating a new address; must be omitted when floating_ip_id is given.
vm_port_id*string—
vm_ip_address*string—
floating_ip_idstring | null—
bandwidth_subscriptionPlanType | null—
bandwidth_mbpsinteger | nullBandwidth limit in Mbps; must be a multiple of 10.
product_category"productFloatingIp"Product category for billing. Must be omitted when floating_ip_id is given.
subscriptionPlanType | nullSubscription plan type. Required when allocating a new address; must be omitted when floating_ip_id is given.

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/floating_ip/allocate" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "vm_port_id": "<vm_port_id>",
    "vm_ip_address": "example"
  }'
GET/api/v1/floating_ip/artifacts

Floating Ip Artifacts

Returns reservable floating IPs, external networks, and the target resource's interfaces for floating-IP allocation.

Parameters

NameInTypeDescription
admin_domainquerystring | null—
admin_projectquerystring | null—
resource_idquerystring | null—
product_type_namequerystring—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X GET "https://api.nimbusnexus.net/api/v1/floating_ip/artifacts" \
  -H "Authorization: Bearer $NIMBUS_KEY"
POST/api/v1/floating_ip/deallocate

Deallocate Ip

Detaches a floating IP from its port, optionally deleting the floating IP entirely.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
id*string—
deleteboolean—

Responses

  • 200Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/floating_ip/deallocate" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "example"
  }'
POST/api/v1/floating_ip/reserve

Reserve Ip

Reserves a floating IP on an external network without binding it to any port. Billing starts here, under the subscription plan given.

Request body

FieldTypeDescription
admin_domainstring | null—
admin_projectstring | null—
floating_network_id*string—
ip_addressstring | null—
descriptionstring | null—
product_category"productFloatingIp"Product category for billing.
subscriptionPlanTypeSubscription plan type

Responses

  • 201Successful Response
  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 409Conflict
  • 422Validation error
  • 429Too Many Requests
  • 500Internal Server Error
  • 503Service Unavailable

Example

curl -X POST "https://api.nimbusnexus.net/api/v1/floating_ip/reserve" \
  -H "Authorization: Bearer $NIMBUS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "floating_network_id": "<floating_network_id>"
  }'

Need to make a real call? Try these endpoints in the live Swagger UI →