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

fabricNode list including select children

c3yawn
Level 1
Level 1

Looking to make a REST call to the API to list all fabricNodes and include a selection of children (or all if a selection isn't possible) children of each fabricNode. I already have the API call for listing all fabricNodes, but can't seem to figure out how to include all the subtree children. I've done something similar with fvCEp using this:

/api/node/class/fvCEp.json?rsp-subtree=full

Unfortunately it doesn't seem like the fabricNode class supports rsp-subtree the same way. What is the correct way to do this? 

Thank you for the help!

1 Reply 1

Ben_Krem
Level 1
Level 1

Hi

You can use query-target and target-subtree-class. (e.g. query-target=subtree&target-subtree-class=fabricNode,topSystem,l1PhysIf) but the result is presented differently from rsp-subtree. It's just a list containing all MOs, not as parent/child objects.

Review Cisco Networking for a $25 gift card

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