How to Authorize VCF Operations Fleet Management API
search cancel

How to Authorize VCF Operations Fleet Management API

book

Article ID: 409715

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

The VCF Operations Fleet Management API requires proper authentication to ensure secure access to your Fleet Management environment.

This knowledge base article provides a step-by-step guide on how to correctly authorize your API calls using basic authentication with your VCF Operations Fleet Management credentials. 

Environment

VCF Operations 9.0

Resolution

  1. Following these steps will allow you to successfully connect and utilize the VCF Operations Fleet Management API.
  2. Access the VCF Operations UI and navigate to Developer Center >> APIs & SDKs.
  3. Select "Fleet Management API"



  4. Once on the Fleet Management Swagger page, click on "Authorize"
  5. The following popup will be displayed:



  6. In order to get the correct value for Authorization (apiKey) do the following:

    SSH into the Fleet Management appliance using root credentials and run this command (replacing <fleet-admin-password> with the password for the admin@local account):

    echo -n 'admin@local:<fleet-admin-password>' | base64

  7. Type Basic into the Authorization (apiKey) field as per the screenshot below.
  8. Copy the Base64 value from step 6 to the Authorization (apiKey) field in the as per the screenshot below.

    Note: The word Basic must be present before the Base64 value as shown in the image below




  9. Click Authorize