05-13-2024 05:19 AM
I look here:
https://developer.cisco.com/docs/dna-center/overview/#events-and-notifications-eastbound
in the api console docs also but can't find any information about rate limits.
Can anyone give a link or information about the api rate limits? The problem is that I have more than 3600 devices and nearby 10000 modules from this devices. When I want to pull information from each device its is very time consuming. To follow a asynchronous approach, I have to know what are the exact limitations.
Many thanks in advance.
05-13-2024 05:50 AM
I dont think this is documented, but saw in other threads since 2.2.2.5 still only 100 calls per minute for intent/site API. I am not sure you can overcome this or handle this better with the SDK, one way could be to monitor the progress of the "get_task_tree" is to use a loop that checks the status of the task at regular intervals until it is completed. You can use the `get_task_by_id` method to check the status of the task and then use a conditional statement to determine if the task is completed or not. If the task is not completed, you can use the `time.sleep` method to add a delay before checking the status again.
The rate limiter provided by the DNAC SDK, it is designed to help prevent your script from exceeding the rate limits set by Cisco Catyst Center. If your script exceeds the rate limit, the SDK will automatically retry the request after a certain amount of time has passed. This means that you do not need to worry about adding delays between each addition as the SDK will handle this for you.
It's a good practice to implement exponential backoff and retry mechanisms in your application to handle any potential rate limiting issues. This will help your application to automatically adjust its request rate based on the API's response.
I guess if this does not help, the TAC would be your next call.
Hope this helps.
05-13-2024 11:48 AM
Hi, I hope the below scale information on DNAC with API Rate Limit is useful
HTH.
Regards,
Arul
05-21-2024 07:46 AM
This is the only part in the document which looks like regarding any API rate limit... I am not sure if this is the right information.. 50 APIs per min, is not a high rate, but at this point the priority is finding the correct rate limits...
I am new in Network Topics, dnac also, so far many thanks in advance for any help..
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