Skip to main content

Attach public IP to virtual machine

POST 

/core/virtual-machines/:vm_id/attach-floatingip

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.

Request

Responses

Public IP successfully attached to VM.