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

Cisco ACI API multiple filters in one query

JonasKs
Level 1
Level 1

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

Save 25% on Day-2 Operations Add-On License