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
Original Message:
Sent: Mar 09, 2022 06:57 AM
From: Tom Christensen
Subject: Central/MPSK - API for removing and adding MPSK Local Passphrase
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
------------------------------