#Error : User is not authorized, with user on read only on the rest API ontap

1 messages · Page 1 of 1 (latest)

blazing copper
#

hi,
i have try to create an user with read only right for rest api on /api/storage with this commands :

security login rest-role create -role api-ro -api /api/storage -access readonly -vserver myvserver (admin vserver)
security login create -user api-ro-user -application ontapi -authentication-method password -vserver myvserver (admin vserver)
vserver services web access create -name ontapi -role api-ro -vserver myvserver (admin vserver)

i try to get data :
curl -k -u "myuser:mypassword" -X GET "https://mynetappip/api/storage/aggregates" -H "accept: application/json"

i got:
error: 6691623 user is not authorized

can you say me what im doing wrong ?

naive ravine
#

The application needs to be set to HTTP and not Ontapi.