Hi!
I'm trying to shutdown a virtual machine with, but doesn't
With developer tools and API DOC reference i get this valuable info:
* DEV Tools
https://------:8006/api2/extjs/nodes/12345678HV1/qemu/2254/status/shutdown
Request MethodOST
Status Code:200 OK
Remote Address:------:8006
Referrer Policy:no-referrer-when-downgrade
* API
Shutdown virtual machine. This is similar to pressing the power button on a physical machine.This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown.
USAGE
HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/status/shutdown
And required parameter as: node (String) and vmid (integer)
My curl call in bash is:
curl -s -X POST -k https://------:8006/api2/extjs/nodes/12345678HV1/qemu/2254/status/shutdown -b "PVEAuthCookie=$TOKEN"
but I get no response and the virtual machine doesn't shutdown.
Any ideas?
NOTE:
If the curl call is:
curl -s -k https://------:8006/api2/extjs/nodes/12345678HV1/qemu/2254/status/shutdown -b "PVEAuthCookie=$TOKEN"
I get a
{"message":"Method 'GET /nodes/12345678HV1/qemu/2254/status/shutdown' not implemented","status":501,"success":0,"data":null}
response
I'm trying to shutdown a virtual machine with, but doesn't
With developer tools and API DOC reference i get this valuable info:
* DEV Tools
https://------:8006/api2/extjs/nodes/12345678HV1/qemu/2254/status/shutdown
Request MethodOST
Status Code:200 OK
Remote Address:------:8006
Referrer Policy:no-referrer-when-downgrade
* API
Shutdown virtual machine. This is similar to pressing the power button on a physical machine.This will send an ACPI event for the guest OS, which should then proceed to a clean shutdown.
USAGE
HTTP: POST /api2/json/nodes/{node}/qemu/{vmid}/status/shutdown
And required parameter as: node (String) and vmid (integer)
My curl call in bash is:
curl -s -X POST -k https://------:8006/api2/extjs/nodes/12345678HV1/qemu/2254/status/shutdown -b "PVEAuthCookie=$TOKEN"
but I get no response and the virtual machine doesn't shutdown.
Any ideas?
NOTE:
If the curl call is:
curl -s -k https://------:8006/api2/extjs/nodes/12345678HV1/qemu/2254/status/shutdown -b "PVEAuthCookie=$TOKEN"
I get a
{"message":"Method 'GET /nodes/12345678HV1/qemu/2254/status/shutdown' not implemented","status":501,"success":0,"data":null}
response