#NetApp API failed. Reason - 401:Unauthorized

1 messages · Page 1 of 1 (latest)

subtle bridge
#

Hi all,

When I execute the command "curl --location --request GET 'http://test-nas/api/storage/volumes/' -k --user "<myusername>:<mypassword>"", I receive a 401 unauthorized error with the message: {"error":{"code":"6691623", "message":"User is not authorized."}}.

This is a new cluster with ONTAP 9.10.1P10. The user account associated with the command has the application "ontapi" configured with password authentication method.

#1063542514780475493

dusk solstice
#

for REST http is the right application. Not even sure what ontapi was for but I suppose it's the old XML API

subtle bridge
#

@dusk solstice this is used for openstack, and the cinder driver uses ZAPI so Ontapi is what is needed as per documentation.

true heath
#

Ontapi is for the legacy zapi calls. The user needs the http application for REST calls.

#

The example provided is a REST call.