Skip to main content

Attach Public IP to Virtual Machine

https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{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, click here.


Path parameters


id integer   Required

The unique identifier of the virtual machine to which a publically accessible IP address is being attached.


Attributes


status boolean

Indicates the result of the request to attach a public IP to the VM. true signifies success.


message string

A description of the status of the request to attach a public IP to the VM.

Example request
curl -X POST "https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}/attach-floatingip" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "string"
}

Returns


Returns the status of the request to attach a public IP address to the virtual machine. A true status indicates success, otherwise an error has occurred.


Back to top