If the password is changed for a vCenter Server that exists in a vRealize Suite Lifecycle Manager data center, you must update the password in vRealize Suite Lifecycle Manager and trigger data collection.

Prerequisites

Satisfy the following conditions before performing the tasks for this use case.
  • Use POST /lcm/api/v1/login to log in to vRealize Suite Lifecycle Manager.
  • Verify that you have a valid authentication token that matches your login credentials. See Request an Authentication Token.

Procedure

  1. Update the password for an existing vCenter Server. The request also triggers vCenter Server data collection.
    curl -X PATCH "https://LCM-Hostname/lcm/api/v1/action/add/vc" \
            -H "accept: application/json" \
            -H "x-xenon-auth-token: $token" \
            -H "content-type: application/json" \
            -d "{"datacenterName": "<datacenter in LCM>",
                 "vCenterName": "<vcenterhost>",
                 "userName": "<vCenter_username>",
                 "password": "<vCenter_Password>",
                 "type": 3}"
  2. Examine the response.
    The output of the request includes request ID of type VC_DATA_COLLECTION that you can use to check the progress of the data collection.
    • id = Request ID of VC_DATA_COLLECTION request
    • type = VC_DATA_COLLECTION
    • status = Status of the request