Floating IP

Attach public IP to virtual machine

Initiates the creation of a public IP address and attaches it to an existing virtual machine, making it accessible through the internet. Include the virtual machine ID in the path to attach a public IP to the specified VM. For more information on public IP addresses, see Public IPs.

State requirement: This operation requires the VM to be in the ACTIVE or SHUTOFF state.

post/core/virtual-machines/{vm_id}/attach-floatingip

Request

  • Base URL: https://infrahub-api.nexgencloud.com/v1
  • URL: https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{vm_id}/attach-floatingip
  • Auth: API key in header api_key

Path parameters

vm_idinteger required

ID of the vm.

Response

Public IP successfully attached to VM.

statusboolean

Whether the request succeeded.

messagestring

Human-readable description of the result.

Example response

{
  "status": true,
  "message": "Instance is being deleted."
}

Changes

No recorded changes to this operation across all 1 revision of this API.