Skip to content
  • Auto
  • Light
  • Dark

Floating IPs

Floating IPs

Create a New Floating IP
gpu_droplets.floating_ips.create(FloatingIPCreateParams**kwargs) -> FloatingIPCreateResponse
post/v2/floating_ips
Delete a Floating IP
gpu_droplets.floating_ips.delete(strfloating_ip)
delete/v2/floating_ips/{floating_ip}
List All Floating IPs
gpu_droplets.floating_ips.list(FloatingIPListParams**kwargs) -> FloatingIPListResponse
get/v2/floating_ips
Retrieve an Existing Floating IP
gpu_droplets.floating_ips.retrieve(strfloating_ip) -> FloatingIPRetrieveResponse
get/v2/floating_ips/{floating_ip}
ModelsExpand Collapse
class FloatingIP:
droplet: Optional[Droplet]

The Droplet that the floating IP has been assigned to. When you query a floating IP, if it is assigned to a Droplet, the entire Droplet object will be returned. If it is not assigned, the value will be null.

Requires droplet:read scope.

DropletNull = Optional[object]

If the floating IP is not assigned to a Droplet, the value will be null.

ip: Optional[str]

The public IP address of the floating IP. It also serves as its identifier.

formatipv4
locked: Optional[bool]

A boolean value indicating whether or not the floating IP has pending actions preventing new ones from being submitted.

project_id: Optional[str]

The UUID of the project to which the reserved IP currently belongs.

Requires project:read scope.

formatuuid
region: Optional[Region]

The region that the floating IP is reserved to. When you query a floating IP, the entire region object will be returned.

Floating IPsActions

Initiate a Floating IP Action
gpu_droplets.floating_ips.actions.create(strfloating_ip, ActionCreateParams**kwargs) -> ActionCreateResponse
post/v2/floating_ips/{floating_ip}/actions
List All Actions for a Floating IP
gpu_droplets.floating_ips.actions.list(strfloating_ip) -> ActionListResponse
get/v2/floating_ips/{floating_ip}/actions
Retrieve an Existing Floating IP Action
gpu_droplets.floating_ips.actions.retrieve(intaction_id, ActionRetrieveParams**kwargs) -> ActionRetrieveResponse
get/v2/floating_ips/{floating_ip}/actions/{action_id}