cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1123
Views
0
Helpful
0
Replies

Cisco ACI API multiple filters in one query

JonasKs
Beginner
Beginner

Hello,

Is it possible to create multiple filters in one query, on different objects?

Ideally I'd like to get all fvTenants that's tagged with two tags, and only get them back if they are tagged with both.

 

So, my initial thought was constructing a query like this one:

https://URL/api/node/class/fvTenant.json
?rsp-subtree=children
&rsp-subtree-class=tagInst
&rsp-subtree-filter=and(eq(tagInst.name,"FIRST-TAG"),
eq(tagInst.name,"SECOND-TAG"))
&rsp-subtree-include=require

How ever, this one will always fail, since it's checking each tagInst object if it contains both FIRST-TAG and SECOND-TAG, which it obviously can't.

 

Cheers

0 Replies 0
Getting Started

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: