top of page

VCF Operatons 9 Fleet Manager API

  • Writer: Brock Peterson
    Brock Peterson
  • Jul 21
  • 1 min read

Updated: Sep 12

VCF Operations 9 introduced a new component called the Fleet Manager, which we've already discussed. As you've likely noticed, the Fleet Manager has an API surface.


ree

Clicking the API documentation link takes you here.


ree

Which is available at https://fleetmanagerfqdn/api/swagger-ui/index.html. You'll notice top right there are Public and Private API surfaces available.


ree

Selecting the private-internal-api option presents dozens more endpoints, including those for Locker!


ree

Ok, this is a find! Specifically, the Locker Password Controller section which gives us all the Locker endpoints.


ree

To see a list of credentials/passwords in Locker, I can run GET /lcm/locker/api/passwords.


ree

But you'll notice the Response Body, I'm not fully authenticated. Back at the top you'll find the Authorize button.


ree

You don't use a Bearer Token here, but rather your Base64 Encoded admin@local credentials, as documented here. Thanks to Broadcom engineer, Viveksuriyan Subramani for pointing this out. I created mine like this.


ree

If you'd prefer something local, you can also run this command on the Fleet Manager VM to get your Base64 encoded credentials.

echo -n 'admin@local:password_goes_here' | base64

This is what you'll use to authenticate with the Fleet Manager API, like this.


ree

Now you'll be able to access the Fleet Manager API endpoints, like this.


ree

If you're looking for Locker credentials/passwords, you'll want to list them here.


ree

Find the vmid you want then use that in POST /lcm/locker/api/passwords/view/{vmid}, like this.


ree

The VCF Operations 9 Fleet Manager API is powerful, enjoy!

Comments


    bottom of page