top of page

ARUN NUKULA

White Structure

Retrieving password using locker API in VCF 9.0 for Management Components




Retrieving Password from Locker


Step 1: Generate API Token

To generate an API token, you can use either the VCF Operations Fleet Management appliance  logging into the shell as a root user or any Base64 encoding tool.

Encode your credentials in the following format:

echo 'admin@local:youradminatlocalpassword' | base64


Copy the resulting Base64-encoded string. This will be used for authorization.



Step 2: Authenticate via Swagger UI

  1. Open the API documentation in your browser: 

https://<vcf-operations-fleet-mgmt>/api/swagger-ui/index.html
  1. Navigate to VCF Operations → Developer Central → Fleet Management API → API Documentation.

  2. In the Swagger UI, locate the API Token section. When prompted for authorization, enter the following format in the input field:

Basic <Base64-encoded credentials>
  1.  Replace <Base64-encoded credentials> with the string you copied in Step 1.

  2. Click Authorize to authenticate and begin executing API requests.




Step 3: Retrieve Passwords from Locker

  1. Firstly let’s retrieve all passwords from the locker. So that we can use leverage the VMID out of the response and then retrieve specific password

  1. Above API will return response with the paginated list of passwords


[

  {

    "alias": "Default Password for vCenters",

    "createdOn": 1605791587373,

    "lastUpdatedOn": 1605791587373,

    "password": "PASSWORD****",

    "passwordDescription": "This password is being used for all my vCenters",

    "principal": "string",

    "referenced": true,

    "tenant": "string",

    "transactionId": "string",

    "userName": "administrator@vsphere.local",

    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"

  }

]


  1. Now retrieve the password by using the root password of VCF Operations fleet management appliance. Fetch the VMID of the password from the 

The Body should be

{\"rootPassword\":\"V*********!\"}

The response of the previous call will retrieve the password needed.

 
 
 

Recent Posts

See All

1 Comment

Rated 0 out of 5 stars.
No ratings yet

Add a rating
Clistana
Sep 30, 2025
Rated 4 out of 5 stars.

My husband was diagnosed with Creutzfeldt-Jakob Disease (CJD) four years ago. For over two years, we relied on prescription medications and therapies, but unfortunately, his symptoms continued to worsen. His memory, coordination, and overall strength declined, and everyday life became increasingly difficult.Last year, out of desperation and hope, we decided to try an herbal treatment program from NaturePath Herbal Clinic. Honestly, we were skeptical at first, but within a few months of starting the treatment, we began to notice real changes. His alertness improved, his movements became steadier, and he regained a surprising amount of energy and clarity.

Incredibly, he also regained much of his independence and confidence. It’s been a life-changing experience he feels more like himself again, better…

Like
bottom of page