Perform REST API calls with error User is not authorized
Applies to
- REST API
- ONTAP 9
Issue
REST API requests fails.
From a Browser:
Browsing URL of
https://ip_address/api/cluster?fields=version
{"error":{"code":"6691623", "message":"User is not authorized."}}
From curl:
curl --request GET 'https://ip_address/api/cluster?fields=version'
{"error":{"code":"6691623", "message":"User is not authorized."}}