If the MyVMware credentials registered in vRealize Suite Lifecycle Manager change, you can use a PATCH request to update the password in vRealize Suite Lifecycle Manager.

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. Submit a request to get the MyVMware ID.
    curl -X POST "https://LCM-Hostname/lcm/api/v1/settings/add/myvmware" \
            -H "accept: application/json" \
            -H "x-xenon-auth-token: $token" \
            -H "content-type: application/json" \
            -d "{"username": "myVMW_username", "password": "myVMW_password" }"

    Where myVMW_username and my_VMW_password are the MyVMware user details.

  2. Examine the response for the myVMware_ID.
  3. Using the myVMware_ID, submit a request to update the MyVMware credential with the new MyVMware password.
    curl -X PATCH "https://LCM-Hostname/lcm/api/v1/settings/add/myvmware/<myVMware_ID>" \
            -H "accept: application/json" \
            -H "x-xenon-auth-token: $token" \
            -H "content-type: application/json" \
            -d "{"username": "myVMW_username", "password": "new_myVMW_password" }"
  4. Examine the response to see the ID and the status of the request.
    • id = ID of the PATCH operation

    • status=Status of the request