/v2/upgrades#
Method |
URL |
Description |
|---|---|---|
GET |
|
Retrieves current list of all updates. |
GET |
|
Retrieves a specific update. |
POST |
|
Add a new update request. |
Header (required)#
x-lxt-api-token: token from login.
GET#
/v2/upgrades
To get the default/latest update
Command:
curl -s -H x-lxt-api-token:"$token" --insecure -X GET https://<IP or FQDN>/api/v2/upgrades
Output (formatted, with placeholder ellipsis added):
{ "data":"Moving \/root\/insights-dashboard-sp25.1-sp25.2.lxsp to drop account[...] Current system info [...] Initiated [...] Validation [...] Starting installation process [...], [...] }
To get an update with a specified version
Example version:
insights-dashboard-sp25.1-sp25.2.lxspCommand:
curl -s -H x-lxt-api-token:"$token" --insecure -X GET https://<IP or FQDN>/api/v2/upgrades/insights-dashboard-sp25.1-sp25.2.lxsp
Output (formatted, with placeholder ellipsis added):
{ "data":"Moving \/root\/insights-dashboard-sp25.1-sp25.2.lxsp to drop account[...] Current system info [...] Initiated [...] Validation [...] Starting installation process [...], [...] }
POST#
Use POST to add a new update request.
/v2/upgrades
Add new update request
Command:
curl -s -H x-lxt-api-token:"$token" --insecure -X POST https://<IP or FQDN>/api/v2/upgrades
Output (formatted):
{ "data":["Change successfully requested."] }