Update the Aria Suite Lifecycle Manager certficate via API
search cancel

Update the Aria Suite Lifecycle Manager certficate via API

book

Article ID: 394324

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

This KB will be a guide on how to update the certificate of Aria Suite Lifecycle Manager via API. 

In the UI we can do this by going to Lifecycle Operations - Settings - Change Certificate

Environment

If customers would like to Automated the process by updating the Lifecycle Manager Certificate like we do with the Products such a vIDM, Aria Automation, Aria Operations etc, then we can do this in a similar process. 

Resolution

First we need to authenticate so that we can use the API. To do this on Aria Suite Lifecycle we need to create a token with username and password that is Base64 encoded as explained here

Once Authenticated we can run the following to get the certificate UUID that we will be using to replace the current certificate. 

The UUID will be the certificate ID from the locker object. We can see this in the UI under the Certificates and the UUID at the end of the URL

https://AriaLCMFQDN/lcm/locker/certificate/XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX

We can first validate the certificate stored in the locker that we are about to use by using the following API. This will generate a request in Aria Suite Lifecycle. 

POST https://(hostname)/lcm/lcops/api/v2/environments/lcm/products/lcm/certificates/XXXXXXX-XXXX-XXXX-XXXXXXX/pre-validate?tenantId=

Once the above is successful we can run the following to update the certificate on the Lifecycle Appliance. This will again generate a request in Aria Suite Lifecycle.

PUT https://(hostname)/lcm/lcops/api/v2/environments/lcm/products/lcm/certificates/XXXXXXX-XXXX-XXXX-XXXXXXX?tenantId=

 

 

 

Additional Information