Get access level
Return the access level of the user/password combination or API key used when making the connection.
This API call can be used to check if a user is read only or if they are allowed to make updates, without attempting to make any updates.
HTTP request syntax (URI)
GET <base_URI>/v8/storage/file-devices/management/access-level
Return codes
Code | Data | Description |
200 | accessLevel | Access level of the connected user retrieved successfully. |
500 | Error message | Error associated with the storage system. |
Any HTTP status code other than 200 indicates that the API did not complete successfully.
Request example 1: Using API key authentication
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v8/storage/file-devices/management/access-level
Response example 1
HTTP/1.1 200 OK { "accessLevel": { "accessLevel": "full-access", "accessType": "APIKEY" } }
Request example 2: Using username/password authentication
curl -vk -H "X-Subsystem-User: supervisor" -H "X-Subsystem-Password: password" https://172.17.11.11:8444/v8/storage/file-devices/management/access-level
Response example 2
HTTP/1.1 200 OK { "accessLevel": { "accessLevel": "SUPERVISOR", "accessType": "USER" } }