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. :)
 

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!