Can anyone tell me why I'm only getting some of the information for the config when I use the API? I'm really wanting the Memory/vCPUs/ and HD Size. This it the only information I'm getting from: /api2/json/nodes/{node}/qemu/{vmid}/config. However the API documentation show a whole lot more information that is supposed to be returned.
"data": {
"sata0": "zfs_01:vm-505-cloudinit,media=cdrom",
"tags": "<TAGS>",
"ciuser": "ciuser",
"virtio0": "zfs_01:vm-505-disk-0,size=32G",
"vmgenid": "9867ad27-9269-4389-8629-ce0d5264282d",
"net0": "virtio=BC:24:116:8C:4E,bridge=vmbr0",
"cipassword": "**********",
"digest": "5441dc85f467c666d3b77a66f784cecbf89ba609",
"meta": "creation-qemu=9.0.2,ctime=1729342540",
"boot": " ",
"ipconfig0": "",
"smbios1": "",
"description": "",
"agent": "1,fstrim_cloned_disks=1",
"name": "<NAME>"
}
I'm building a NextJS app and trying to get details (Name, Memory, vCPUs, HD Size, IP Address(es)) of certain machines. If there is a better way to get this info, I'm all ears.
"data": {
"sata0": "zfs_01:vm-505-cloudinit,media=cdrom",
"tags": "<TAGS>",
"ciuser": "ciuser",
"virtio0": "zfs_01:vm-505-disk-0,size=32G",
"vmgenid": "9867ad27-9269-4389-8629-ce0d5264282d",
"net0": "virtio=BC:24:116:8C:4E,bridge=vmbr0",
"cipassword": "**********",
"digest": "5441dc85f467c666d3b77a66f784cecbf89ba609",
"meta": "creation-qemu=9.0.2,ctime=1729342540",
"boot": " ",
"ipconfig0": "",
"smbios1": "",
"description": "",
"agent": "1,fstrim_cloned_disks=1",
"name": "<NAME>"
}
I'm building a NextJS app and trying to get details (Name, Memory, vCPUs, HD Size, IP Address(es)) of certain machines. If there is a better way to get this info, I'm all ears.