Managing Pools through the API

ScOut3R

Member
Oct 2, 2013
55
5
6
Hi,

The usage of the PUT /api2/json/pools/{poolid} API endpoint is not clear to me. I would like to add a newly created VM to a specific pool but I am not sure about the content of the "vms" parameter. Should it contain only the given VM ID or the list of the Pool members appended by the given VM ID?
 
Just one more question please.

What does the "pve-vmid-list" format exactly mean? It says that it is a string so I tried to send the attribute as a concatenated string, the ids seperated but a comma and space but it does not work.
 
Thanks again Dietmar for the quick answer! As it seems I have misunderstood your answer or my OP question wasn't clear enough. My "vms" attribute contained the current members, appended by the new ID and this was wrong. Only the new ID(s) should be appended. I missed the "delete" flag. :)