Developer

 View Only
last person joined: 4 days ago 

Expand all | Collapse all

Hello World python API Example?

This thread has been viewed 10 times
  • 1.  Hello World python API Example?

    Posted 24 days ago

    I'm familiar with python, but just getting started with the AurbaOS 8.10 API. I have a basic script that logs in to my MC, but I'm a bit confused on how to format and send a show command.


    Does anyone have a basic working example of how I'd do that?



  • 2.  RE: Hello World python API Example?

    MVP GURU
    Posted 23 days ago

    Hi Sfletty,

    You can look 

    https://developer.arubanetworks.com/aruba-aos/docs/showcommand-api

    You need only to use uri 

    v1/configuration/showcommand?command=<show-command>&UIDARUBA=<session-token>'

    and replace <show-command> by your command (by example show ap database, and replace space by + => =show+ap+database ) and UIDARUBA by the token



    ------------------------------
    PowerArubaSW : Powershell Module to use Aruba Switch API for Vlan, VlanPorts, LACP, LLDP...

    PowerArubaCP: Powershell Module to use ClearPass API (create NAD, Guest...)

    PowerArubaCL: Powershell Module to use Aruba Central

    PowerArubaCX: Powershell Module to use ArubaCX API (get interface/vlan/ports info)..

    ACEP / ACMX #107 / ACDX #1281
    ------------------------------