Unable to generate API token in VMware Aria Automation Pipelines 8.12.0
search cancel

Unable to generate API token in VMware Aria Automation Pipelines 8.12.0

book

Article ID: 345952

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • You are unable to generate API tokens in VMware Aria Automation Pipelines 8.12.0.


Environment

VMware Aria Automation 8.12.x

Cause

The CSP API to generate a API Token has changed. The current API that is used in Aria Automation Pipelines is deprecated and needs to be updated with latest Token generation API.

See API fails with HTTP Error 500: Internal Server Error after upgrading to versions 8.11.1 or higher for additional information.

Resolution

This issue is resolved in VMware Aria Automation 8.12.2.

See Workaround section below for additional information.


Workaround:

Procedure

Generate a token manually using the below cURL command and save it within a variable. The following variables must be replaced in the below command. These variables can be reused in the webhooks.

  • <AriaAutoFQDN>
  • <Bearer token>
  • <username>
  • <password>
  • <domain>
Note: Replace all < > characters when updating the command below.
curl --location 'https://<AriaAutoFQDN>/csp/gateway/am/api/login?access_token=null' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <Bearer Token>' \
--data-raw '{
    "username":"<username>","password":"<password>","domain": "<domain>"
}'


Additional Information

Impact/Risks:
You are unable to generate an API token to support Git webhooks.