Hard-Reboot Virtual Machine
GET https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}/hard-reboot
Initiates a hard reboot for a virtual machine, simulating the process of unplugging and rebooting a physical machine. Provide the virtual machine ID in the path to execute a hard reboot for the specified virtual machine.
Path parameters
id integer
Required
The unique identifier of the virtual machine to be rebooted.
Attributes
status boolean
Indicates the result of the request to reboot the VM. true
signifies success, while false
indicates an error.
message string
A description of the status of the request to reboot the VM.
Example request
curl -X GET "https://infrahub-api.nexgencloud.com/v1/core/virtual-machines/{id}/hard-reboot" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "string"
}
Returns
Returns the status of the request to hard-reboot the virtual machine. A true
status indicates success, otherwise an error has occurred.