API how to use 'GET /api2/json/nodes/{node}/qemu --full' via HTTP/proxmoxer

Szymons

Member
Feb 11, 2021
69
8
13
Poland
Hello,

How can I use HTTP style of CLI :
Code:
pvesh get /nodes/{node}/qemu --full

GET /api2/json/nodes/{node}/qemu --full ?

here is working example from proxmoxer wrapper but without "full"

Code:
def vm_current_all(targetnode):
  x = proxmox.nodes(targetnode).qemu().get()
  return x
 

Attachments

  • get api.PNG
    get api.PNG
    93.2 KB · Views: 32
ok I just get it :D

Code:
def vm_current_all_full(targetnode):
  status = proxmox.nodes(targetnode).qemu().get(full='1')
  return status