Community Related Discussions

Highlighted

read-only access for powershell toolkit

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

Re: read-only access for powershell toolkit

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. 

Re: read-only access for powershell toolkit

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

Forums