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

Prime API response on device count

biwong
Cisco Employee
Cisco Employee

I am seeing Prime reporting 100APs for the API call. However today I noticed that API Response says count 320 (# of APs) but lists only 100.  Per the prime documentation, I don’t see a way to retrieve all APs information.   Here's a snipit of the output response.  Should the @last line say 320 and then show all 320 APs information?

API: https://10.211.29.107/webacs/api/v1/data/AccessPoints.json

Response:

{

       "queryResponse": {

"@type": "AccessPoints",

"@rootUrl": "https:\/\/10.211.29.107\/webacs\/api\/v1\/data",

"@requestUrl": "https:\/\/10.211.29.107\/webacs\/api\/v1\/data\/AccessPoints",

"@responseType": "listEntityIds",

"@count": "320",

"@first": "0",

"@last": "99",

"entityId": [{

"@url": "https:\/\/10.211.29.107\/webacs\/api\/v1\/data\/AccessPoints\/476478",

"@type": "AccessPoints",

"$": "476478"

},

{

"@url": "https:\/\/10.211.29.107\/webacs\/api\/v1\/data\/AccessPoints\/476480",

"@type": "AccessPoints",

"$": "476480"

},

{

"@url": "https:\/\/10.211.29.107\/webacs\/api\/v1\/data\/AccessPoints\/476482",

"@type": "AccessPoints",

"$": "476482"

},

{

1 Reply 1

Spencer Zier
Cisco Employee
Cisco Employee

This is the API behaving as intended.  By default, only the first 100 results are going to be shown.  To show more results (up to a maximum of 1000) or to show subsequent pages, you must include paging parameters.  Check out step 7 of the tutorial that we shipped in Prime Infrastructure 3.0.  Alternatively, check out /webacs/api/v1/?id=paging-doc on your own server.