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

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

The PS pack includes policy files for the new VMware Aria Suite product version and a checksum of the binary that VMware Aria Suite Lifecycle 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 VMware Aria Suite Lifecycle 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",
    ...