02-21-2018 03:07 AM - edited 03-01-2019 05:27 AM
Hello there,
I'm currently building an ACI dashboard using dashing framework and ruby file for requesting by rest API my ACI fabric.
We've a lot of virtual machines at the moment, but there are many constraint when using fvCEp. Let's assume we have floating ip on virtual machines, it will count at twice for the same VM. one Ep with private ip address and the second one with floating (public) ip address.
I'd like to count by api rest only fvCEp.ip attributes which contains 192.168.
I don't know and I don't think it is possible to set a filter "contains " on my api request for the specific attribute.
I've spent times reading this guidelines:
With moquery it's really easy because of using regex.
I'm just wondering if there's a specific way (like regex) but for api rest on ACI.
Thanks for your help
Yoann
Solved! Go to Solution.
02-21-2018 06:50 AM - edited 02-21-2018 06:52 AM
Hi Yoann
Because the wcard-Filter is not working with the fvCEp.ip attribute you can use ge and le filters:
GET https://APIC/api/class/fvCEp.json?query-target-filter=and(ge(fvCEp.ip,"192.168.0.0"),le(fvCEp.ip,"192.168.255.255"))
HTH
Marcel
02-21-2018 06:50 AM - edited 02-21-2018 06:52 AM
Hi Yoann
Because the wcard-Filter is not working with the fvCEp.ip attribute you can use ge and le filters:
GET https://APIC/api/class/fvCEp.json?query-target-filter=and(ge(fvCEp.ip,"192.168.0.0"),le(fvCEp.ip,"192.168.255.255"))
HTH
Marcel
02-21-2018 12:44 PM
Hello there,
Well, it was quite easy finally.
I feel a bit dumb at the moment. But I've learnt something by the way.
Just wondering, it is something that could be "improved" for the future, do you have any information about the roadmap?
Thanks for your help, my dashboard is now "fully fit" :)
Yoann
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: