Unable to perform REST API calls, user not authorized
Applies to
- ONTAP 9
- REST API
- User has one of following pre-defined roles: backup, snaplock, vsadmin-backup, vsadmin-snaplock
Issue
Access /api/storage/volumes through REST API fails with following error:
curl -k -u username:password https://<ip_address>/api/storage/volumes
{"error":{"code":"6691623", "message":"User is notauthorized."}}