Accessing VCF Operations 9.1 Log Management via API
search cancel

Accessing VCF Operations 9.1 Log Management via API

book

Article ID: 450054

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

To access Log Management API (formerly Aria Operations for Logs) within VCF Operations 9.1, users must exchange a standard VCF Operations session token for a specific Log Management JWT. 

Environment

  • VCF Operations 9.1
  • VCF Operations Log Management 9.1

Resolution

Follow these steps to generate the required JWT token for Log Management API access:

1. Access the Swagger UI

Go to the VCF Operations API documentation page: https://<vcf-operations-fqdn>/suite-api/doc/operations-api.html

2. Authenticate

Click the Authorize button at the top of the page. Enter your local credentials (or an existing OpsToken) to authenticate the session.

3. Locate the Token Exchange Endpoint

Go to the Authentication section and find the following endpoint: POST /api/auth/token/exchange

4. Configure the Request Body

Click Try it out. In the request body (schema), include only the ops-li scope as follows:

{
  "serviceKeys": [
    "ops-li"
  ]
}


5. Execute and Retrieve the JWT

Click Execute. Under the Response body, copy the generated JWT token.

6. Access Log Management APIs

Use the retrieved JWT token in the Authorization header for any subsequent Log Management API calls:

  • Header Key: Authorization
  • Header Value: Bearer <JWT_token>

Additional Information

Documentation: VMware Cloud Foundation (VCF) Operations API