cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
967
Views
3
Helpful
2
Replies

Can you limit or filter queryResponse to only a single entity?

Brian B
Cisco Employee
Cisco Employee

Hello,

I am trying to find the upTime of a device.  When I query /webacs/api/v1/data/InventoryDetails/[ID] I get all of the details for the entry.  For a larger switch chassis, this is a ponderous number of interfaces and other details.  What I really want is the value of "upTime" in the "summary" attribute.  Is there any way to narrow the queryResponse?

1 Accepted Solution

Accepted Solutions

Spencer Zier
Cisco Employee
Cisco Employee

No, the API does not support custom projections of the data.

View solution in original post

2 Replies 2

Spencer Zier
Cisco Employee
Cisco Employee

No, the API does not support custom projections of the data.

Well please consider this a feature request.    When looking to poll a specific value, InventoryDetails returns a TON of potentially superfluous data that eats into the rate-limits for API.  The ability to pass a parameter in the API that would limit the entities in the response would make InventoryDetails far far more useful.  Thanks.