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/assignToLoadBalancerRule > .html > <https://cloudstack.apache.org/api/apidocs-4.15/apis/assignToLoadBalancerRule.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ć