[SOLVED] API Error

davitcult

Member
Feb 12, 2022
6
0
6
26
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!