Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Prime Infrastructure 2 - API rate limit change?

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
Hall of Fame Super Silver

Prime Infrastructure 2 - API rate limit change?

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.

New Member

Prime Infrastructure 2 - API rate limit change?

Thanks for the research, Marvin.

Where/how do you access this parameter?

Hall of Fame Super Silver

Prime Infrastructure 2 - API rate limit change?

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

For example:

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

New Member

Prime Infrastructure 2 - API rate limit change?

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.

354
Views
0
Helpful
4
Replies
CreatePlease login to create content