Community Related Discussions

read-only access for powershell toolkit

EamonnH
2,933 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
2,898 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
2,881 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