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.

Software Development Kit (SDK) and API Discussions

system-cli authorization failed

prasadkm0204
5,108 Views

Issue:

<results status="failed" reason="Authorization failed" errno="13002"></results>

 

Code snippet

--

api = NaElement("system-cli")
xi = NaElement("priv","diag")
xi1 = NaElement("args")
xi1.child_add(NaElement("arg","version"))
api.child_add(xi1)
api.child_add(xi)

 

I am using user 'admin' with the following privileges on the admin vserver

--

security login show admin

Vserver: <admin vserver>
Authentication Acct
UserName Application Method Role Name Locked
---------------- ----------- -------------- ---------------- ------
admin console password admin no
admin http password admin no
admin ontapi password admin no
admin service-processor
password admin no
admin ssh password admin no
5 entries were displayed.

 

1 ACCEPTED SOLUTION

prasadkm0204
5,090 Views

copy/paste error. please ignore.

View solution in original post

2 REPLIES 2

prasadkm0204
5,100 Views

To add. The username/password I am is correct since all the other apis work without issue.

I am facing this issue only while using the system-cli api.

 

-Prasad

prasadkm0204
5,091 Views

copy/paste error. please ignore.

Public