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

Prime Infrastructure 2 - API rate limit change?

phoffswell
Level 1
Level 1

Good day -

The Prime API is pretty sweet, and can give you JSON data back easily with a call like this:

https://prime/webacs/api/v1/data/Clients.json?.full=true

It is, however, limited to 100 results. We'd like to see more than that.

How do I change this rate limit for the API?

4 Replies 4

Marvin Rhoads
Hall of Fame
Hall of Fame

The .maxResults parameter would seem to allow one to change it according to the API documentation.

But I tried it on mine right now and the results appear to still be limited to 100.

Thanks for the research, Marvin.

Where/how do you access this parameter?

Just append it to your query with the "." delimiter.

For example:

https://prime/webacs/api/v1/data/Clients.json?.full=true.maxResults=200

I have found that this command does work, but still limits to 1000. 

https://prime/webacs/api/v1/data/Clients.json?.maxResults=9999&.full=true

Now I get Tomcat a HTTP Status 503 error.  There's another setting I've not found yet.

My json results say "@count":"6980", suggesting I have that many clients in the database.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card