Developer

 View Only
Expand all | Collapse all

Enable SSID via API

This thread has been viewed 52 times
  • 1.  Enable SSID via API

    Posted Jul 01, 2025 04:56 PM

    Hi, good morning everyone,

    I'd like to ask a question: from time to time, I get requests to enable an SSID that we usually keep turned off.
    We only activate this SSID when we have visitors from other countries, but lately, these activations have become more frequent.

    I wanted to know if it's possible to enable an SSID via the Aruba API and have the password set to expire after 3 days.

    Is there an endpoint that would allow me to test this automated activation?



  • 2.  RE: Enable SSID via API

    Posted Jul 02, 2025 05:20 AM

    What type of setup is this and how are the APs managed? Central, Instant or Controller based?



    ------------------------------
    Willem Bargeman
    Systems Engineer Aruba
    ACEX #125
    ------------------------------



  • 3.  RE: Enable SSID via API

    Posted Jul 02, 2025 10:31 AM

    Hi,

    I have devices deployed across multiple sites, all managed through Aruba Central.

    -------------------------------------------
    Mensaje original:
    Enviado: Jul 02, 2025 05:19 AM
    De: willembargeman
    Sujeto: Enable SSID via API

    What type of setup is this and how are the APs managed? Central, Instant or Controller based?



    ------------------------------
    Willem Bargeman
    Systems Engineer Aruba
    ACEX #125



  • 4.  RE: Enable SSID via API

    Posted Jul 02, 2025 10:39 AM

    There is an AP configuration API. Currently the only way to update the configuration is to push the complete configuration. Please check the following API

    https://internal-apigw.central.arubanetworks.com/swagger/central/#!/AP_Configuration/api_ap_clis_get_configuration_clis

    Warning! You need to post the complete AP configuration!! 

    With New Central API this will be easier. 



    ------------------------------
    Willem Bargeman
    Systems Engineer Aruba
    ACEX #125
    ------------------------------



  • 5.  RE: Enable SSID via API

    Posted Jul 14, 2025 11:54 AM

    Hi!
    I have been trying to send a curl request to enable an SSID that was previously created, but I get the following error message:

    curl -k -X PUT \

    "https://apigw-uswest4.central.arubanetworks.com/configuration/v2/wlan/Store-Visitors/VisitaSSID" \

    -H "Authorization: Bearer 8efTSWa11111111111xxxxxxx" \

    -H "Content-Type: application/json" \

    -d '{

      "wlan": {

        "essid": "testing.local",

        "type": "guest",

        "enabled": true

      }

    }'

    ----------------------
    response

    {

      "description": "WLAN Northbound API is not enabled for customer id: fd3dd246ef824ba991d9b9c17113232c.",

      "error_code": "0001",

      "service_name": "Configuration"

    }




  • 6.  RE: Enable SSID via API

    Posted Jul 15, 2025 04:02 AM

    Hi,

    You need to ask to TAC for enable WLAN Northbound API



    ------------------------------
    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
    ------------------------------



  • 7.  RE: Enable SSID via API

    Posted Jul 15, 2025 09:17 AM

    Thank you very much, guys. Let's see how it goes with TAC.




  • 8.  RE: Enable SSID via API

    Posted Jul 23, 2025 11:52 AM

    Hi team,

    I wanted to share that I successfully activated the Northbound API in Aruba Central. However, when trying to send a request to enable or disable an SSID that was previously created on our side, it doesn't seem to be feasible.

    Does anyone know if this is actually possible through the API, or if there's any limitation regarding this?

    Looking forward to your feedback.




  • 9.  RE: Enable SSID via API

    Posted Jul 24, 2025 02:58 AM

    What makes that you think it's not possible? If you use the configuration/full_wlan API endpoint, there is an attribute: "disable_ssid": true for which I'd assume you can control it as well.

    The Central Automation Studio may be a good tool to find out what you can do via the APIs and how to do it.



    ------------------------------
    Herman Robers
    ------------------------
    If you have urgent issues, always contact your HPE Aruba Networking partner, distributor, or Aruba TAC Support. Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact HPE Aruba Networking TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or HPE Aruba Networking.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------



  • 10.  RE: Enable SSID via API

    Posted Jul 25, 2025 09:36 AM

    Hi Herman,
    I have the SSID created in Aruba, but it's currently turned off.
    The goal is to enable it using the API, but I haven't been able to turn it back on.
    I'm not sure if I'm using the correct endpoint.

    curl -k -X PATCH "https://apigw-uswestX.central.arubanetworks.com/configuration/v2/wlan/Salvador/testing.local" \

    -H "Authorization: Bearer 0kZ1E4VEL7veW2mOEujhgchkjkvh" \

    -H "Content-Type: application/json" \

    -d '{

      "wlan": {

        "essid": "testing.local",

        "type": "employee",

        "enabled": true,

        "network_enabled": true,

        "hide_ssid": false

      }

    }'

    When running the tests, the API only returns the SSID name, but it doesn't provide any additional information to confirm whether it was actually enabled.




  • 11.  RE: Enable SSID via API

    Posted Jul 25, 2025 08:23 AM
    Edited by bkohnke Jul 28, 2025 03:37 AM

    Edit: I am assuming you are using AOS10

    You can not change settings on a per site basis in Central. You can only change it per AP or per group.

    To change it per AP, you can use this API call:

    apiPath=f'/configuration/v2/ap_settings/{serial}'

    and then remove the unwanted SSID profile from the 'zonename' attribute:

    ap_settings['zonename'] = ssid_string

    I'm using an old version of pycentral for my scripts, maybe that is already implemented better

    https://github.com/aruba/pycentral 

        ap_settings = current_config
        ap_settings['zonename'] = ssid_string
        response = central.command(
            apiMethod='POST',
            apiPath=f'/configuration/v2/ap_settings/{serial}',
            apiParams=kwargs,
            apiData=ap_settings
        )

    You can also use Central Automation Studio with CSV workflow and the change RF zone workflow. 

    You need to create a list of all APs from that site, serial and MAC, and then you can change the RF zone accordingly.



    ------------------------------
    Bjarne
    ACMX#1522
    ------------------------------



  • 12.  RE: Enable SSID via API

    Posted Jul 25, 2025 09:44 AM

    Hi my friend,
    In that case, it might be better to create an SSID and then delete it afterward, since it's a temporary network that will only be active for a few days.
    I've never used Central Automation Studio before, but it looks interesting. I'll take a look and see what I can do with it.




  • 13.  RE: Enable SSID via API

    Posted Jul 25, 2025 09:49 AM

    Central Automation Studio using the ap_cli API to update the configuration. It simple first gets the full config. Then you can edit the configuration and post the new full configuration back to Central. Using that method you can update each configuration attribute. 

    https://developer.arubanetworks.com/central/reference/apiap_clisget_configuration_clis



    ------------------------------
    Willem Bargeman
    Systems Engineer Aruba
    ACEX #125
    ------------------------------