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
ACTIVEorSHUTOFFstate.
Request
Responses
- 200
- 400
- 401
- 402
- 404
- 500
Public IP successfully attached to VM.
Bad Request
Unauthorized
Insufficient balance to create the resource
Not Found
Internal Server Error
Was this page helpful?