When attempting to execute Aria Operations API calls via the curl command from a VM, the request fails with the error message: "We apologize. You are not authorized for the request."
However, the same API calls are successful when executed from the Swagger UI (https://Aria_Ops_IP/suite-api).
The following error will also be seen in certain scenarios.
curl: (60) SSL certificate problem: self-signed certificate in certificate chain
curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it.You are not authorized for the request" error is an SSL certificate validation failure on the client VM when attempting to establish a secure connection to the Aria Operations server. The curl client is unable to validate the authenticity of the Aria Operations server's SSL certificate.Access the Aria Operations Swagger UI page at https://<Aria_Ops_IP>/suite-api and confirm that the API call works successfully.
Copy the curl command generated from the Swagger UI.
Execute the curl command from the remote VM using the -k argument to bypass SSL certificate verification.
curl -k <rest of the command>
Verify that the API call completes successfully.