Developer

 View Only
last person joined: 2 days ago 

Expand all | Collapse all

Central/MPSK - API for removing and adding MPSK Local Passphrase

This thread has been viewed 10 times
  • 1.  Central/MPSK - API for removing and adding MPSK Local Passphrase

    Posted Mar 09, 2022 06:58 AM

    Hi. Sorry about asking this question.... But I am trying to find the API for removing and adding MPSK Local Passphrase. We have to make an easy web portal for handling local MPSK's in Central for a costumer. But I am not able to find the correct API call for it. Have anyone stumbled over it or is it not available?





    ------------------------------
    Regards
    Tom Christensen
    ------------------------------


  • 2.  RE: Central/MPSK - API for removing and adding MPSK Local Passphrase

    MVP GURU
    Posted Mar 31, 2022 04:09 AM
    Hi Tom,

    do you have found ?

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



  • 3.  RE: Central/MPSK - API for removing and adding MPSK Local Passphrase

    EMPLOYEE
    Posted 25 days ago
    Hi Tom,
    I have tried the same thing. Add, delete or change MPSK local passphrase over Central REST API. I found only this way:
    1) APs have to be in Template Group
    2) In the template I used Pressphrase as a variable. For example:
        wlan mpsk-local test
            mpsk-local-passphrase test1 %psk1% mpsk-ts2
            mpsk-local-passphrase test2 %psk2% mpsk-ts2
            mpsk-local-passphrase test3 %psk3% mpsk-ts2
    3) I change the variables (pks1, psk2, ...) over Central REST API. Example:
      
    curl --location --request PATCH 'https://internal-apigw.central.arubanetworks.com/configuration/v1/devices/CNKHKSM1TX/template_variables?access_token=xxxxxxxx' \
    --header 'Content-Type: application/json' \
    --data-raw '{
    "total": 3,
    "variables": {
    "psk1": "Aruba123",
    "psk2": "Aruba1234",
    "psk3": "Aruba12345"
    }
    }'


    ​You can also delete the variables and in template use IF conditions to decide when you fill in the passphrase or not based on if it is exist.​

    Regards Jan