Skip to main content

Detach Public IP From Virtual Machine

https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}/detach-floatingip

Removes a public IP address from an existing virtual machine, disabling internet accessibility to the VM. Include the virtual machine ID in the path to detach the public IP from the specified VM. For more information on public IP addresses, click here.


Path parameters


id integer   Required

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


Attributes


status boolean

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


message string

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

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

Returns


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


Back to top