Cloud Managed Networks

last person joined: 2 days ago 

Forum to discuss all things Aruba Central and UXI Network Management, this includes Aruba Central managed networks, Central configuration, best practices, Central APIs, Cloud Guest, AIOps, Presence Analytics and Other Central Applications
Expand all | Collapse all

Aruba Central API - Rate Limit Exceeded

Jump to Best Answer
This thread has been viewed 20 times
  • 1.  Aruba Central API - Rate Limit Exceeded

    Posted Nov 04, 2019 03:44 PM

    Hi All,

     

    I'm trying to pull a Device Inventory report from Central via the API (as there doesn't appear to be a method of pulling this from the GUI) but regardless of whether I try via the Swagger interface or via Curl I get the following message....

     

    {"message":"API rate limit exceeded"}

     

    This seems to happen no matter what API call I make, but I have previously been able to use the API gateway via Swagger.

     

    Any ideas?

     

    Thanks,

    Matt.



  • 2.  RE: Aruba Central API - Rate Limit Exceeded
    Best Answer

    Posted Nov 05, 2019 05:16 AM

    There is a default rate-limit on Central API calls of 1000 calls per day. Could it be that you exceeded that number? The limit should clear every day.

     

    When writing against the API, make sure that your calls are relevant and needed to reduce the load and number of calls.



  • 3.  RE: Aruba Central API - Rate Limit Exceeded

    Posted Nov 07, 2019 05:31 PM

    Hi Herman,

     

    It looks like that's the likely cause, we have a developer working on pulling data from Aruba Central (via API) into Grafana, pretty sure that is the likely cuplret as can't see that my meager API calls are likely to generate that many in a day!

     

    Will have to reach out to the developer in question and see if there is any way of reducing the number of API calls he's making as it's leaving me stuffed when I actually need to use the API to replace functionality that ought to be in the base product (like inventory reporting for example!).

     

    Thanks,

    Matt.



  • 4.  RE: Aruba Central API - Rate Limit Exceeded

    Posted 29 days ago
    I just came across this error this morning while trying to figure out an automated way to update my IAP hostnames in Aruba Central.  I believe this functionality that should be in the product, but I was just in the process of figuring out the pycentral "update_ap_settings" commands when I ran out of API calls for the day.  How annoying!  It would be nice if I could just upload a csv with the device names I want and Aruba Central could actually process that instead of having to fight the API they provide to do the same thing -- manually setting hundreds or thousands of device names is not acceptable!

    ------------------------------
    Clay Berlo
    ------------------------------



  • 5.  RE: Aruba Central API - Rate Limit Exceeded

    Posted 26 days ago
    Please reach out to TAC, if they can update those names for you. In template mode you can import, in standard mode, I could not find the option either.

    If TAC confirms that there is indeed no import/bulk update possible, ask your partner or Aruba SE to request this as a feature through Aruba Innovation Zone.

    I heard rumours that the API call limit is also under investigation, in a way that customers with more devices can do more daily API calls.

    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 6.  RE: Aruba Central API - Rate Limit Exceeded

    Posted 26 days ago
    Thanks for the suggestion.  I did reach out to TAC, and was told no such script exists, but that I could always ask for it as a feature.

    ------------------------------
    Clay Berlo
    ------------------------------



  • 7.  RE: Aruba Central API - Rate Limit Exceeded

    Posted 26 days ago
    Hi cberlo,

    If you want take a look at this hosted at Aruba's github https://github.com/aruba/central-automation-studio
    It is linked to Aaron Scott's Central Automation platform (https://central.wifidownunder.com)

    He has done exactly what you asked for as listed in his documentation https://central.wifidownunder.com/documentation.html#csv-row

    Check section "Auto Rename Access Points"

    Hope you find it useful..

    ------------------------------
    Ayman Mukaddam
    ------------------------------



  • 8.  RE: Aruba Central API - Rate Limit Exceeded

    Posted 26 days ago
    I have scripted a way to do the majority of what I want already, but I'll look into setting up the framework, on top of the Central API framework.  It does seem like a lot of work for something that should already be in the product, as mentioned.

    ------------------------------
    Clay Berlo
    ------------------------------