This article provides instructions on how to retrieve passwords for VMware Cloud Foundation (VCF) component users via the Fleet Management API in VCF Operations 9.0.x.
VMware Cloud Foundation 9.0.x
To retrieve the passwords, follow these steps:
Developer Center > API & SDKs > Fleet Management API.Private Internal APIs.GET /lcm/locker/api/v3/passwords API call. From the sample JSON response below, locate target user and copy the associated vmid:{
"vmid": "############",
"alias": "############",
"userName": "admin",
"passwordDescription": null,
"type": "product",
"status": "active",
"createdOn": "############",
"lastUpdatedOn": "############",
"lastValidatedOn": null,
"reference": {
"envId": "############",
"envName": "############",
"productId": "############",
"hostName": "FQDN",
"ip": "IP_Address",
"nodeType": null,
"referenceId": "############"
}
}POST /lcm/locker/api/passwords/view/{vmid} API call using the vmid obtained in the previous step.Note: Viewing the password requires you to provide the Fleet Manager VM root credentials. Add the following required field to the request body, replacing locker:password:<vmid>:<alias> with the actual root credentials for the Fleet Management VM.{
"rootPassword": "locker:password:<vmid>:<alias>"
}Execute. The response will successfully return the password details:{
"passwordVmid": "############",
"password": "############"
}