08-19-2022 08:50 AM - edited 09-20-2022 01:41 AM
Below self-help content explains the steps involved in uploading the DPSK CSV file using public API call.
Product Type: vSZ-E/vSZ-H/SZ-100/SZ-144/SZ-300 series controller.
Firmware Version: 6.x and later releases.
API Version: 11.0
Prerequisites:
Steps to upload the CSV:
POST: https://<SZ_IP>:8443/wsg/api/public/v11_0/session
BODY:
{
"username": "parik",
"password": "password"
}
GET: https://<SZ_IP>:8443/wsg/api/public/v11_0/rkszones
Copy and make a note of Zone ID from below output
{
"totalCount": 1,
"hasMore": false,
"firstIndex": 0,
"list": [
{
"id": "714295a7-af03-41fd-8866-f77886d482fc",
"name": "Ruckus Zone"
},
}
Use the same Zone ID to retrieve WLAN ID using below GET request. Make a note of WLAN ID
GET: https://<SZ_IP>:8443/wsg/api/public/v11_0/rkszones/714295a7-af03-41fd-8866-f77886d482fc/wlans
{
"totalCount": 1,
"hasMore": false,
"firstIndex": 0,
"list": [
{
"id": "141",
"mvnoId": "839f87c6-d116-497e-afce-aa8157abd30c",
"zoneId": "714295a7-af03-41fd-8866-f77886d482fc",
"name": "DPSK SSID",
"ssid": "DPSK SSID"
},
}
POST: https://<SZ_IP>:8443/wsg/api/public/v11_0/rkszones/<Zone_ID>/wlans/<WLAN_ID>/dpsk/upload
Example URL: https://tac-vsz:8443/wsg/api/public/v11_0/rkszones/714295a7-af03-41fd-8866-f77886d482fc/wlans/141/dp...
After constructing POST URL choose
a. Option Body
b. Select form-data
c. Under KEY section enter string “file”
d. Hover over highlighted d section and select “File” as a value type
e. Under VALUE section click on select files and chose the DPSK-CSV file to be uploaded
f. Hit Send to post the contents to SZ
The output looks like below snippet: The DPSK ID will be generated along with the passphrase if the passphrase section in CSV is blank.