cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
80
Views
0
Helpful
0
Replies
Highlighted
Beginner

Cisco ACI API multiple filters in one query

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

Everyone's tags (2)
CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards