06-04-2018 03:03 PM
Hello,
I am working on a report which uses product name + code version to obtain a list of Cisco BUGs using the BUG API 2.0. I have wrote custom code to identify the last page index and do a call for each page index while appending to a dictionary. This is very annoying and I wish to access all matching bugs in a single POST. Is this possible?
06-04-2018 07:01 PM
At this time, there is no way to get more than 10 bugs per request. The way the API is structured, we would not remove pagination for a number of reasons. We could potentially provide a means to allow the developer to request more/less bugs per page, e.g. pagesize=100, but that would need to be limited to a max size and would not eliminate the need for the application to handle paging.
Regards,
Keitih
06-06-2018 10:25 AM
Thanks for the reply, as of now if I want to collect all bug ID's for a specific device platform / code and it returns over 100 bugs, I can capture the last index, and loop the API call for each page index. The only problem is you throttle the amount of API calls per second. Due to this I initiated a time-wait for 1s in-between each API call. However, I still get random errors reporting "unauthorized"... This does not happen every time, just randomly.
06-06-2018 11:50 AM
Hi Matthew,
If you could capture the request and response headers when this error pops up, we could troubleshoot it.
Regards,
Keith
12-24-2018 01:15 PM
Hi Keitih,
I have a similar problem. I try to get all the Bug-IDs for about 300 devices. At the moment I am able to break this down to about 70 PIDs with about 90 software versions. So i need a lot more then 1000 calls per day (the actual limit) if I can only get 10 Bug-IDs per call.
What I need is, get more Bug-IDs per call and have much more calls per day.
Thanks
Thomas
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide