#Custom REST API role not working, please help

1 messages · Page 1 of 1 (latest)

sage vessel
#

im trying to use the ontap 9.11 rest api. i need to create a role for permissions to do all snapshot oprations on a specific volume. i tried creating this role through a postman POST request to /api/security/roles endpoint but for some reason i get 401 not authorized errors:

{
  "name": "test-role",
  "owner.uuid":"{{svm-nas01-uuid}}",
  "privileges":[
    {
    "access":"all",
    "path": "/api/storage/volumes/{{Test-vol-uuid}}/snapshots"
    }
  ]
}

if i use a deafult role, like the admin role, then the request works fine, so its not a user/pass credentials issue