Creating a NetApp cluster-mode user with API privileges
Data collection of NetApp Cluster-Mode requires a specific read-only role and user in order to collect data for a cluster.
To create a new user account with the required privileges, use the following Command Line Interface (CLI) steps. This set of commands creates a role as and then a user named with read-only access.
Create a read-only role using the following two commands.
security login role create -role apt_readonly -cmddirname DEFAULT -access readonly security login role create -role apt_readonly -cmddirname security -access readonly
Create the read-only user using the following command. Once you have executed the create command, you will be prompted to enter a password for this user.
security login create -username apt_user -application ontapi -authmethod password -role apt_readonly
The resulting role and user login will look something like this:
Role Command/ Access Vserver Name Directory Query Level ---------- ------------- --------- ------------------ -------- cluster1 apt_readonly DEFAULT readonly cluster1 apt_readonly security readonly cluster1::security login> show Vserver: cluster1 Authentication Acct UserName Application Method Role Name Locked ---------------- ----------- -------------- ---------------- ------ apt_user ontapi password apt_readonly no