Developer

 View Only
last person joined: 2 days ago 

Expand all | Collapse all

REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

This thread has been viewed 40 times
  • 1.  REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

    Posted 11 days ago

    is there an api to get/set vlan tagged ,untagged, isolated ports configs for CX switch similar to AOS switch https://apigw-uswest4.central.arubanetworks.com/swagger/central/#!/AOS-S/api_hppc_switch_get_device_vlans
    GET/PUT   / configuration / v1 / aos_switch / vlans / devices / { device_serial } 

     I can't seem to find one for CX switch in swagger docs.


    I have asked this in slack in hpe-greenlake channel but that channel seems to be  pretty silient .



  • 2.  RE: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

    EMPLOYEE
    Posted 10 days ago
    Do you mean within Central or to the CX switch directly? If you're talking about the CX API then I wonder if the resources on the developer portal will help:

    https://developer.arubanetworks.com/aruba-aoscx/docs/get
    https://developer.arubanetworks.com/aruba-aoscx/docs/tips-and-tricks-with-aos-cx-rest


  • 3.  RE: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

    Posted 10 days ago
    @probere
    Yes within Central as that is what I am referring to.​


  • 4.  RE: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

    EMPLOYEE
    Posted 9 days ago
    It looks like /monitoring/v1/cx_switches/{serial}/vlan might get you there. I've adapted the url to match your region so let me know if it doesn't take you to the swagger interface. There is an equivalent version of this for the CX switch stacks also.

    the response sample shows tagged and untagged VLANs:
    {
      "count": 5,
      "total": 5,
      "vlans": [
        {
          "name": "DEFAULT_VLAN",
          "id": 1,
          "ipaddress": [],
          "tagged_ports": [
            "1/1/10"
          ],
          "untagged_ports": [
            "1/1/45"
          ],
          "access_ports": [
            "1/1/15"
          ],
          "status": "Up",
          "is_igmp_enabled": true,
          "is_jumbo_enabled": true,
          "is_voice_enabled": true,
          "promiscuous_ports": [],
          "isl_ports": [],
          "type": "Regular",
          "oper_state_reason": "OK",
          "is_management_vlan": true
        }
      ]
    }​



  • 5.  RE: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

    Posted 9 days ago

    thanks @ProbeRequest Yep get request is  there in monitoring but also looking for put/post request :) 

    https://hpedev.slack.com/archives/C02EG5XFK8Q/p1668530934466319?thread_ts=1668491134.391109&cid=C02EG5XFK8Q




  • 6.  RE: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

    EMPLOYEE
    Posted 8 days ago
    Here you go: https://developer.arubanetworks.com/aruba-central/reference/apicx_configupdate_interfaces

    This update interfaces API for CX switches will allow changing VLAN configuration.

    You can create/delete VLANs using {{base_url}}/configuration/v1/switch/cx/vlans and you can update which interfaces with trunk/access using {{base_url}}/configuration/v1/switch/cx/interfaces.


  • 7.  RE: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

    EMPLOYEE
    Posted 10 days ago
    Hi,

    Although we currently don't have any equivalent APIs for CX Switches, they are planned in future releases.
    There are several GET APIs in the Monitoring -> Switch section which can help you get some of the data that you are looking for
    1. Switch Monitoring APIs - https://developer.arubanetworks.com/aruba-central/reference/apiexternal_controllerget_switches 
    2. Create/Update/Delete VLANs for CX Switches- https://developer.arubanetworks.com/aruba-central/reference/apicx_configcrud_vlans



  • 8.  RE: REST API: is there an api to get vlan tagged ,untagged, isolated ports configs for CX switch?

    Posted 9 days ago

    Hi,

    Do you have any timeline of the release that will support put/update vlans with tagged/untagged/isolated ports for cx switches?