[SOLVED] API Error

davitcult

Member
Feb 12, 2022
6
0
6
27
Hello,

I'm trying to manage VM via the Proxmox API. i can see all VM and LXC calling this URL : api2/html/nodes/#nodename#/qemu
i can see the currentt status of the VM using : api2/html/nodes/#node-name#/qemu/109/status/current.
It return :
Code:
{
   "data" : {
      "cpu" : 0,
      "cpus" : 8,
      "disk" : 0,
      "diskread" : 0,
      "diskwrite" : 0,
      "ha" : {
         "managed" : 0
      },
      "maxdisk" : 27917287424,
      "maxmem" : 8489271296,
      "mem" : 0,
      "name" : "dev",
      "netin" : 0,
      "netout" : 0,
      "qmpstatus" : "stopped",
      "status" : "stopped",
      "uptime" : 0,
      "vmid" : 109
   }
}

But when trying to start the VM with this URL : api2/html/nodes/#node-name#/qemu/109/status/start this return Error 501: Method 'GET /nodes/gawel-maison/qemu/109/status/start' not implemented.
Do you have any idea why i got this error ?

Thanks
 
Last edited: