HI!
I was trying to find out which pool is connected to a VM-ID by searching with the VM-ID. In theory I should be able to use the /api2/json/pools API call to return the pool-id and the data of it's members, where I could find the VM-ID and backtrace it to the pool. The documentation states that the optional field "members" should get returned.
Sadly only the fields "poolid" and "comment" are returned in HTTP GET calls to /api2/json/pools.
When tried with pvesh get /pools the field is listed but remains empty. I checked with /pools/{poolid} and the values of the members field gets listed their.
So is this an error in the documentation or a potential bug?
Also maybe you could suggest another way to find out which pool contains the vm when searching from the vm-id..
Thanks!
I was trying to find out which pool is connected to a VM-ID by searching with the VM-ID. In theory I should be able to use the /api2/json/pools API call to return the pool-id and the data of it's members, where I could find the VM-ID and backtrace it to the pool. The documentation states that the optional field "members" should get returned.
Sadly only the fields "poolid" and "comment" are returned in HTTP GET calls to /api2/json/pools.
When tried with pvesh get /pools the field is listed but remains empty. I checked with /pools/{poolid} and the values of the members field gets listed their.
Code:
┌───────────────┬────────────────────────────────────────────────┬─────────┐
│ poolid │ comment │ members │
╞═══════════════╪════════════════════════════════════════════════╪═════════╡
So is this an error in the documentation or a potential bug?
Also maybe you could suggest another way to find out which pool contains the vm when searching from the vm-id..
Thanks!
Last edited: