Error "We apologize. You are not authorized for the request" when making Aria Operations API calls using Curl
search cancel

Error "We apologize. You are not authorized for the request" when making Aria Operations API calls using Curl

book

Article ID: 416711

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • 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.

Environment

  • Aria Operations 8.x

Cause

  • The root cause of the "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.

Resolution

  1. Access the Aria Operations Swagger UI page at https://<Aria_Ops_IP>/suite-api and confirm that the API call works successfully.

  2. Copy the curl command generated from the Swagger UI.

  3. Execute the curl command from the remote VM using the -k argument to bypass SSL certificate verification.

    • curl -k <rest of the command>

  4. Verify that the API call completes successfully.