If a remediation report indicates a configuration drift in the vRealize Suite environment, you can use vRealize Suite Lifecycle Manager to trigger a remediation.

Prerequisites

Satisfy the following conditions before performing the tasks for this use case.

Procedure

  1. Trigger the remediation request.
    curl -X POST "https://LCM-HostName/lcm/api/v1/remediation" -H "accept: application/json" -H "x-xenon-auth-token: $token"

    The body of the JSON input specifies the product configuration that you want to restore such as, vRealize Automation, vRealize Operations Manager, vRealize Log Insight, or vRealize Business for Cloud. For a remediation to occur, the isRemediationEnabled parameter value must be set to true as in the following input example to remediate a change in the DNS server for vRealize Automation version 7.3.

    {
      "updateTime": "2018-06-28T11:09:28.632Z[Etc/UTC]",
      "productType": "vra-7.3.0",
      "productNames": [
        "764b17cc6f57875569146ef4e5a2"
      ],
      "nodes": [
        {
          "type": "vRealize Automation",
          "nodeIdField": "APPLICATION",
          "driftedProducts": [],
          "categories": [
            {
              "categoryType": "Tenant",
              "categoryId": "xxyyzz",
              "isRetry": false,
              "isRemediationEnabled": true,
              "isGroupRemediation": true,
              "driftedProducts": [],
              "property": [
                 {
                 ...
                   "name": "DNS",
                   "isRemediationEnabled": true,
                   "isRetry": false,
                   "values": [
                     {
                       "productName": "TEMPLATE",
                       "value": "10.141.66.213,10.118.183.252"
                     },
                     {
                       "productName": "764b17cc6f57875569146ef4e5a2",
                       "value": "10.118.183.252"
                     }
                   ],
                   "remediationCandidate": "TEMPLATE",
                 },
                 ...
              ] 
            }
          ] 
        }
      ]
    }
          
    
    

  2. Examine the response to verify whether the operation was successful.