Curl command fails with 401 status code when testing CVO REST API
Applies to
- NetApp BlueXP
- Cloud Volumes ONTAP REST API
Issue
Use the curl command to test the Cloud Volumes ONTAP REST API is failing with a status code 401 error.
url --request GET --location 'https://cloudmanager.cloud.netapp.co...m/system/about' --header 'Content-Type: application/json' --header 'x-agent-id: DtnUD9VZmD7ReVsg4YICIKb2F8b8Qzw7clients' --header 'Authorization: Bearer zkkzFIl0cBLPXmEDCpMLET6v6VpJHlFGqDoYFgNYfFumf'
{"statusCode":401,"message":"Unauthorized"}