Developer

last person joined: 7 days ago 

Expand all | Collapse all

Aruba Central api call

This thread has been viewed 11 times
  • 1.  Aruba Central api call

    Posted Aug 11, 2019 12:03 PM

    Hi,

     

    I am trying to find the right api call for device details. Where i can find the divice name ect..

     

    I have been digging arround in the swagger tool: https://app1-apigw.central.arubanetworks.com/swagger/ but i cant find any call that returns good values. msp_api/v1/customers/customerID/divices return my devices but i want some indepth details for a device.

     

    Thanks

    Michael

     

     



  • 2.  RE: Aruba Central api call

    EMPLOYEE
    Posted Aug 12, 2019 04:48 PM

    Hi Michael,

    I would like you to elaborate your use case a little more for my better understanding. However, I am sharing a few API endpoints that will give you some granular device details. 

     

    • API for getting AP details
      /monitoring/v1/aps
    • API for getting Controller/Gateway details
      /monitoring/v1/mobility_controllers
    • API for getting Switch details
      /monitoring/v1/switches

    You can use the GET method with the above mentioned API endpoints to obtain the respective device details. Do check them out and let me know if it works for you.

     

    Regards,

    Jay



  • 3.  RE: Aruba Central api call

    Posted Aug 13, 2019 01:22 AM

    Hi Jay,

     

    Thanks for your awnser. so i went to the swagger page. Entered my newly generated access code and executed:

     

    monitoring/v1/aps

    The responce body is  { "aps": [], "count": 0 } with responce code 200.

     

    monitoring/v1/switches

    The responce body is  { "count": 0, "switches": [] } with responce code 200.

     

    monitoring/v1/mobility_controllers

    The responce body is  { "count": 0, "mcs": [] } with responce code 200.

     

    Do you have any idea what i am doing wrong ?

     

    Michael

     

     



  • 4.  RE: Aruba Central api call
    Best Answer

    EMPLOYEE
    Posted Aug 13, 2019 05:31 PM

    If you are using an MSP account please perform the steps mentioned below:

     

    -  From MSP mode go to  the Monitoring and Reports app

    -  Search for the customer you want the information for

    -  Click on the customer to get into tenant view

    -  Once you are in the tenant view, go to the Maintainence app

    - Click on api gateway and create a new token 

    - Go to the swagger page

    - Test the API mentioned above with the newly created access token 

     

    Let me know if this worked for you.

     

    -Jay



  • 5.  RE: Aruba Central api call

    Posted Aug 14, 2019 02:22 AM

    Thank you very much, that was it!