Hi,
As mentioned by alagoutte, you will need to create a dot1x authentication profile and add it to a AAA profile for converting an open ssid to a PSK ssid.
Find the API call below, for converting to a PSK ssid:
Method:
POST
URL:
$url = 'https://113.x.x.x:7707/v1/configuration/object?config_path=%2Fmm%2Fmynode&UIDARUBA='.$sessionId;
Request Body (JSON): Multiple Endpoints
{
"ssid_prof": [{
"profile-name": "vssid123",
"ssid_enable" : {},
"essid": {
"essid": "vssid123"
},
"wpa_passphrase": {
"wpa-passphrase": "secretPSK5"
},
"opmode": {
"wpa2-psk-aes": true
}
}],
"dot1x_auth_profile": [{
"profile-name": "vssid123"
}],
"aaa_prof": [{
"profile-name": "vssid123",
"dot1x_auth_profile": {
"profile-name": "vssid123"
}
}],
"virtual_ap": [{
"profile-name": "vssid123",
"aaa_prof": {
"profile-name": "vssid123"
},
"vlan": {
"vlan": "1"
},
"ssid_prof": {
"profile-name": "vssid123"
}
}],
"ap_group": [{
"profile-name": "default",
"virtual_ap": [{
"profile-name": "vssid123"
}]
}]
}
Note:
- Multiple endpoints are hit in the same api call like ssid_prof, do1x_auth_prof, aaa_prof, virtual_ap, ap_group to create/edit various profiles
- Only ssid_prof, dot1x_auth_profile and aaa_prof are needed to achieve the desired result, however virtual_ap and ap_group are added in case you need it
- Change vlan and ap-group name in the request body as applicable
Regards,
Jay