I'm trying to use the powershell toolkit to automate some snapshot procedures, and it works fine with a admin account, but I can't seem to find the correct permissions to get it to work. The role I have is
::> security login role show
Role Command/ Access
Vserver Name Directory Query Level
---------- ------------- --------- ----------------------------------- --------
nap-svm01 vmwsnapshotonly
DEFAULT none
version all
volume all
volume snapshot -volume *snap* all
and that doesn't work. I keep getting
New-NcSnapshot : not authorized for that command
At C:\Users\Downloads\oracle-snapshot.ps1:137 char:9
+ New-NcSnapshot $volume $volume$(get-date -f MM-dd-yyyy_HH_mm_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (111.11.11.11:NcController) [New-NcSnapshot], EAPIPRIVILEGE
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.NewNcSnapshot