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 article guides you on how to update the certificate of Aria Suite Lifecycle Manager via API.

In the UI, you can do this by navigating to Lifecycle Operations - Settings - Change Certificate.

Environment

To automate the process of updating the Lifecycle Manager certificate, similar to other products such as vIDM, Aria Automation, and Aria Operations, follow this procedure.

Resolution

First, authenticate to use the API. Create a token with a username and password that is Base64 encoded, as explained in the VMware Aria Suite Lifecycle Programming Guide.

Once authenticated, retrieve the certificate UUID that will be used to replace the current certificate.

The UUID is the certificate ID from the locker object. You can view this in the UI under Certificates, located at the end of the URL:

https://AriaLCMFQDN/lcm/locker/certificate/######-####-####-####-##########

Validate the certificate stored in the locker using the following API. This generates a request in Aria Suite Lifecycle.

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

Once successful, run the following command to update the certificate on the Lifecycle Appliance. This also generates a request in Aria Suite Lifecycle.

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

Additional Information