When connecting over an SSH-connection, the user: readonly_cl_user can see the tiering-minimum-cooling-days.
::> set d
Warning: These diagnostic commands are for use by NetApp personnel only.
Do you want to continue? {y|n}: y
::*> volume show -fields tiering-minimum-cooling-days
vserver volume tiering-minimum-cooling-days
-------- -------- ----------------------------
nct_cifs02 sns004_cifs_vol01 30
nct_cifs02 sns004_cifs_vol02 30
nct_cifs02 sns004_cifs_vol03 30
nct_cifs02 sns004_cifs_vol04 30
BUT:
When running the command from powershell, with invoke-ncsystemapi. It says:
PS H:\> Invoke-NcSystemApi -Request $api -ErrorAction Stop
Invoke-NcSystemApi : Insufficient privileges: user 'readonly_cl_user' does not have write access to this
At line:1 char:2
+ Invoke-NcSystemApi -Request $api -ErrorAction Stop
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (ncu:NcController) [Invoke-NcSystemApi], EAPIPRIVILEGE
+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.System.InvokeNcSystemApi
PRIVILEGES IN THE ROLE ARE:
::> security login role show -vserver xxx
readonly_cl DEFAULT readonly
metrocluster check run all
set all
system all
MY QUESTION IS: WHAT privilege do I need to create for WHICH command on the CLI to make it work in Powershell over the invoke-ncsystemapi-command?
thank you in advance !
Moray