Hi guys,
I would like to automate volume cloning by RestAPI. It should not run as admin, only with needed permission on SVM level.
Following rest-role is created:
Users are defines as follows:
security login show -user-or-group-name DOM\storage
Vserver: Cluster1
Second
User/Group Authentication Acct Authentication
Name Application Method Role Name Locked Method
-------------- ----------- ------------- ---------------- ------ --------------
DOM\storage http domain readonly - none
Vserver: SVM1
Second
User/Group Authentication Acct Authentication
Name Application Method Role Name Locked Method
-------------- ----------- ------------- ---------------- ------ --------------
DOM\storage http domain ExchangeRestore - none
Rest Role:
security login rest-role show -vserver SVM1 -role ExchangeRestore
Role Access
Vserver Name API Level
---------- ------------- ------------------- ------
SVM1 ExchangeRestore /api/protocols/san readonly
/api/protocols/san/lun-maps all
/api/storage readonly
/api/storage/luns all
/api/storage/volumes all
/api/svm readonly
It works for Read of LUN / Volume / Snapshot. It doesn't work for Volume POST operation (vol clone).
In this case, an log-in window in the browser opens and asking for login. There are somewhere permissions missing.
Is there a way to debug the RestAPI?
Marcis