Apply a PS pack

If you used vRealize Suite Lifecycle Manager to install a vRealize Suite product and that product releases a new version between vRealize Suite Lifecycle Manager releases, you can use the API to apply a PS pack so that vRealize Suite Lifecycle Manager supports the new product version.

For example, if you used vRealize Suite Lifecycle Manager 8.4 to install vRealize Automation 8.4, and vRealize Automation 8.5 is released, you can apply a PS pack so that vRealize Suite Lifecycle Manager 8.4 supports vRealize Automation 8.5. For vRealize Suite Lifecycle Manager 8.4 to support the newer version of vRealize Automation, you do not need to wait for the next release of vRealize Suite Lifecycle Manager.

The PS pack includes policy files for the new vRealize Suite product version and a checksum of the binary that vRealize Suite Lifecycle Manager needs to support the newer version.

This procedure shows how to use the API to download and apply the PS pack.

Prerequisites

Procedure

  1. Check for the latest PS packs that are available online in the Content Delivery Network (CDN).
    curl -X POST \
      '$url/lcm/lcops/api/v2/system-pspack' \
      -H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' \
      -H 'Content-Type: application/json' | jq "."
    The request triggers the API. The response shows the request ID.
    {
        "requestId":"asdf1234a-6e1f-4772-a97d-af300ad9999c"
    }
  2. Assign the request ID variable.
    requestId = "asdf1234a-6e1f-4772-a97d-af300ad9999c"
  3. Track your request.
    curl -X GET '$url /lcm/request/api/v2/requests/$requestId' -H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' | jq "."
    After completion, the list of available PS packs in vRealize Suite Lifecycle Manager refreshes.
    ...
    },
      "outputMap": {},
      "state": "COMPLETED",
      "executionId": "94301f3c-20cc-47a1-90ec-130635edb7d1",
    ...
  4. List the PS packs.
    curl -X GET \
      '$url/lcm/lcops/api/v2/system-pspack' \
      -H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' \
      -H 'Content-Type: application/json' | jq "."
    A snippet of the response shows the PS pack ID and product ID.
    {
        "fileName": "ONLINE-vrlcm-8.2.0-PSPACK2",
        "isCurrentVersion": "string",
        "patchLevelRequired": "string",
        "policyVersion": "8.2.0.2",
        "policyVersionDetailsList": [
          {
            "productId": "vrlcm",
            "versions": {}
          }
        ],
        "pspackId": "c0a13037-3906-43b8-8eb3-7f73e76c3ea8"
      }
    ]
  5. Assign the pspackId variable.
    pspackId = "c0a13037-3906-43b8-8eb3-7f73e76c3ea8"
  6. Use the pspackId to apply the PS pack.
    curl -X POST \
      '$url/lcm/lcops/api/v2/system-pspack/$pspackId' \
      -H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' \
      -H 'Content-Type: application/json' \
     | jq "."
    The request triggers the API. The response shows the request ID.
    {
        "requestId":"poiu5678a-6e1f-4772-a97d-af300ad8888c"
    }
  7. Assign the request ID variable.
    requestId = "poiu5678a-6e1f-4772-a97d-af300ad8888c"
  8. Track your request.
    curl -X GET '$url /lcm/request/api/v2/requests/$requestId' -H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' | jq "."
    After completion, the PS pack is applied.
    ...
    },
      "outputMap": {},
      "state": "COMPLETED",
      "executionId": "94301f3c-20cc-47a1-90ec-130635edb7d1",
    ...