NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Community Related Discussions

read-only access for powershell toolkit

EamonnH
4,476 Views

Hi,

 

Does anyone have a definitive list of the APIs that need to be granted to allow read-only access from powershell? We're trying to automate reporting, but we need to ensure there is no possibility of the script changing anything.

 

Any and all advice gratefully received.

 

Regards,

Eamonn

2 REPLIES 2

gaurav_verma
4,441 Views

Hey, 

 

I suggest create a role called readonly with Access level "readonly" and Command "Default" assign that role to the user which your powershell script will be using to run an API. This way script can only run command to get output from storage systems and not for input. 

Ajaykb
4,424 Views

This would work for you.

 

security login create -user-or-group-name <scriptuser>  -role  readonly   -application ontapi

security login create -user-or-group-name <scriptuser>  -role  readonly   -application http

Public