Hi, I did this, also used the log, the only thing I do not understand is the logic of "vmidipmap[0]" from where do I know when is "[0]" 1, 3?
8080/client/api/?id=96b21874-c52b-4b5b-b33c-fd61bbb5b0e2&vmidipmap[0].vmid=4e5b2104-7d2a-4238-921a-f7545241534e&vmidipmap[0].vmip=10.2.1.29&command=assignToLoadBalancerRule&response=json Thank you Cristian -----Original Message----- From: Andrija Panic <andrija.pa...@gmail.com> Sent: Friday, September 10, 2021 11:04 AM To: users <users@cloudstack.apache.org> Subject: Re: usage example assignToLoadBalancerRule API Hi Cristian, I would advise you to use a browser, developer tools, Networking tab - to capture API HTTP calls to the mgmt server - this is, by far, the best way to "learn" the API usage (IMO at least). Bestm On Fri, 10 Sept 2021 at 09:30, <cristian.c@istream.today> wrote: > Hello, > > > > Can someone provide a usage example for this API? > > https://cloudstack.apache.org/api/apidocs-4.15/apis/assignToLoadBalanc > erRule > .html > <https://cloudstack.apache.org/api/apidocs-4.15/apis/assignToLoadBalan > cerRule.html> I'm asking this because I do not understand the logic > behind. I tested almost all the APIs but I have a logic issue with > this one. > > > > Let's say I have 2 VMs, each of the VMs has 2 IPs assigned and I > want to add with both IPs. > > > > ID 1 = 4e5b2104-7d2a-4238-921a-f7545241534e > > IP 1 = 10.100.10.2 > > IP 2 = 10.100.10.3 > > ID 2 = 854939c1-2c2f-4612-a264-a6653f268cbd > > IP 1 = 10.100.10.20 > > IP 2 = 10.100.10.30 > > > > Rule ID = 96b21874-c52b-4b5b-b33c-fd61bbb5b0e2 > > > > > > > > Regards, > > Cristian > > -- Andrija Panić