Cloud Managed Networks

last person joined: yesterday 

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, Presence Analytics and Other Central Applications
Expand all | Collapse all

Need some help with the Central API.

Jump to Best Answer
  • 1.  Need some help with the Central API.

    Posted Mar 16, 2018 10:14 AM

    I am trying to teach myself to use the Central API and i am having trouble getting off the ground. I can't even figure out how to obtain an auth code form the API using my client_id.  I obviously missing something, and admitedly don't have any experience in this.  Every time i try to use the API it comes back saing "The access token is missing", but i'm trying to obtain an access token.  I can't possible need an access token to get an access token.  Does anyone have some resources to help het me on my feet with the API?



  • 2.  RE: Need some help with the Central API.
    Best Answer

    Posted Mar 16, 2018 02:04 PM

    1. I hope API GW is enabled for your account.

    2. Learn the swagger tool by following the doc attached.

    3. Now you can authenticate using an external app as well using the attached script.

    4. You have to refresh the token, every two hours. script attached.

    5. Attaching a sample python script that helps to list create delete groups in central using API calls.

     

    Remember you are on a production account & not internal.

     

    Also consult this:

     

    http://help.central.arubanetworks.com/latest/documentation/online_help/content/pdfs/central/aruba%20central%20api%20reference%20guide.pdf

     

    Hope this helps.

     

     



  • 3.  RE: Need some help with the Central API.

    Posted Mar 19, 2018 10:02 AM

    Mannvishal,

             Thank you, I was able to find the errors in my code.  Your sample scripts where hugely helpful.

    Thank you.



  • 4.  RE: Need some help with the Central API.

    Posted Aug 14, 2019 11:32 AM

    Issue seems to be resolved, please disregard. 



  • 5.  RE: Need some help with the Central API.

    Posted Aug 14, 2019 05:30 PM
      |   view attached

    Leaving this here in case someone likes Ansible over working with Python. I basically converted the included python script from previous responder into ansible speak. Lots of uri module. Anywho, if I had some skills i would make this an ansible module! Update file extension to .yaml

    Attachment(s)

    txt
    auth.txt   2 K 1 version