Cloud Managed Networks

 View Only
  • 1.  Changing gateway config via API

    Posted Dec 14, 2022 02:27 PM
    Is there any method with documentation related to change the gateway config via API.

    I have found some method to do this with APs and Switches but theire is no info about gateways.

    APs --> https://developer.arubanetworks.com/aruba-central/reference/apiap_clisupdate_configuration_clis

    I found an API used in a python library:

    https://base_url//caasapi/v1/exec/cmd?serial_num=SERIAL

    Is there any info of this API?

    For example i want to execute via API:

    "aaa user delete role ROLE"



  • 2.  RE: Changing gateway config via API

    Posted Feb 09, 2023 07:52 AM

    I just posted syntax for the cli under the heading:

    Do we have an API to delete files from the flash of the controller?  

    But it looks something like this:

    apiPath = '/caasapi/v1/exec/cmd'
    apiMethod = 'POST'
    apiParams = {
    'group_name': '{0}/{1}'.format('CENTRALGROUPNAME', '00:00:00:00:00:00') <- this is the central group and device mac
    }
    apiData = {
    'cli_cmds': ["hostname TESTROUTER", "!", "interface vlan 2", "ip address 10.0.0.1 255.255.255.128", "!"]} <- a list of the commands to execute