Lack of admin privilege when I tried to create a new zone or any action by
using API
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2019 09:33 PM
Hello Everyone,
I am trying to create some items in virtual SmartZone E by using API on Swagger Inspector API tool. I can do something with API, but also could not do something with API.
It returns this one:
https://1.1.1.1:8443/wsg/api/public/v8_1/rkszones/domainId
my vSZ-E version is 5.1.1.0.598.
I already inputed the creadential information with Basic Authentication tab, then input Username and Password.
My question is why did it appear? My account is Super Administrator and I already logged in to vSZ-E on web browser, also input the vSZ-E's credential.
Thank you.
I am trying to create some items in virtual SmartZone E by using API on Swagger Inspector API tool. I can do something with API, but also could not do something with API.
It returns this one:
{example API calling
"message": "Permission denied (Access is denied)",
"errorCode": 211,
"errorType": "Lack of admin privilege"
}
https://1.1.1.1:8443/wsg/api/public/v8_1/rkszones/domainId
my vSZ-E version is 5.1.1.0.598.
I already inputed the creadential information with Basic Authentication tab, then input Username and Password.
My question is why did it appear? My account is Super Administrator and I already logged in to vSZ-E on web browser, also input the vSZ-E's credential.
Thank you.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 12:57 AM
It's probably because you're not including the the JSESSIONID cookie in your cURL payload. You need to include it with every API call (except obviously, the login).
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 02:35 AM
Thanks a lot Lawrence! I will try it.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 02:39 AM
also I have another question which I could not create a question. Maybe Ruckus forum is having any issue.
I would like to post here. Please kindly help me to solve it. Thank you so much.
>>>
I am creting a new Zone by using API. But it always returns errorCode 0: Internal Server Error. Althought, the vSZ-E server is running well, also vSZ-E Web Management is working well.
I am using POST method:
https://1.1.1.1:8443/wsg/api/public/v8_1/rkszones
Could you please give me any advices? Thank you so much,
<<<
I would like to post here. Please kindly help me to solve it. Thank you so much.
>>>
I am creting a new Zone by using API. But it always returns errorCode 0: Internal Server Error. Althought, the vSZ-E server is running well, also vSZ-E Web Management is working well.
I am using POST method:
https://1.1.1.1:8443/wsg/api/public/v8_1/rkszones
{
"name": "nameOfThrone",
"description": "description Zone",
"version": "5.1.1.0.624",
"countryCode": "VN",
"timezone": {},
"login": {
"apLoginName": "apLoginName",
"apLoginPassword": "apPassword#1"
},
"dfsChannelEnabled": false,
"wifi24": {
"txPower": "Full",
"channelWidth": 20,
"channel": 0,
"channelRange": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13
]
},
"wifi50": {
"txPower": "-1dB",
"channelWidth": 40,
"indoorChannel": 0,
"outdoorChannel": 0,
"indoorChannelRange": [
36,
40,
44,
48,
52,
56,
60,
100,
104,
108,
112,
116,
120,
124,
128,
132,
136,
149,
153,
157,
161
],
"outdoorChannelRange": [
36,
40,
44,
48,
52,
56,
60,
64,
100,
104,
108,
112,
116,
120,
124,
128,
132,
136,
149,
153,
157,
161
]
},
"protectionMode24": "RTS_CTS",
"channelModeEnabled": false,
"tunnelType": "RuckusGRE",
"tunnelProfile": {},
"backgroundScanning24": {
"frequencyInSec": 20
},
"backgroundScanning50": {
"frequencyInSec": 20
},
"bandBalancing": {},
"loadBalancingMethod": "BASED_ON_CLIENT_COUNT",
"dosBarringEnable": 0,
"dosBarringPeriod": 60,
"dosBarringThreshold": 5,
"dosBarringCheckPeriod": 30,
"apRebootTimeout": {
"gatewayLossTimeoutInSec": 1800,
"serverLossTimeoutInSec": 7200
},
"location": "Ho Chi Minh",
"locationAdditionalInfo": "City In The South Of Viet Nam",
"latitude": 23,
"longitude": 23,
"vlanOverlappingEnabled": false,
"autoChannelSelection24": {
"channelSelectMode": "ChannelFly",
"channelFlyMtbc": 480
},
"autoChannelSelection50": {
"channelSelectMode": "BackgroundScanning",
"channelFlyMtbc": 480
},
"channelEvaluationInterval": 777,
"apMgmtVlan": {
"id": 1,
"mode": "KEEP"
},
"apLatencyInterval": {
"pingEnabled": true
},
"ipsecProfile": {},
"bonjourFencingPolicyEnabled": false,
"snmpAgent": {},
"recoverySsid": {
"recoverySsidEnabled": true
},
"dhcpSiteConfig": {},
"rogueApReportThreshold": 0,
"rogueApAggressivenessMode": 2,
"rogueApJammingDetection": false,
"directedMulticastFromWiredClientEnabled": true,
"directedMulticastFromWirelessClientEnabled": true,
"directedMulticastFromNetworkEnabled": true,
"healthCheckSitesEnabled": false,
"ipsecProfiles": []
}
Could you please give me any advices? Thank you so much,
<<<

