Forum Discussion

Naveenkumar's avatar
Naveenkumar
Icon for Neophyte rankNeophyte
11 months ago

Any way to pull available upgrade collector version via API,SDK or any other means.

Hi, Any way to pull available upgrade collector version via API,SDK or any other means.
  • LMjosephBrett's avatar
    11 months ago

    Hello @Naveenkumar 

    This is definitely something that is available via the API.  From our swagger documentation here, we have the endpoint:

    https://www.logicmonitor.com/swagger-ui-master/api-v3/dist/#/CollectorVersions/getCollectorVersionList 

    /setting/collector/collectors/versions

    However, this endpoint returns the full list of collectors all the way back to 2017 which is not super useful.  What we can do is use the parameter of topVersions=true giving us a full endpoint of:

    /setting/collector/collectors/versions?topVersions=true

    Which when I just tested returned us the value that are currently available for download in the portal:

    {
    "total": 3,
    "items": [
    {
    "majorVersion": 35,
    "minorVersion": 100,
    "mandatory": false,
    "stable": false,
    "releaseEpoch": 0,
    "has32bitWindows": false,
    "has32bitLinux": false
    },
    {
    "majorVersion": 35,
    "minorVersion": 0,
    "mandatory": false,
    "stable": true,
    "releaseEpoch": 1702538848,
    "has32bitWindows": false,
    "has32bitLinux": false
    },
    {
    "majorVersion": 33,
    "minorVersion": 7,
    "mandatory": true,
    "stable": true,
    "releaseEpoch": 1693212733,
    "has32bitWindows": false,
    "has32bitLinux": false
    }
    ],
    "searchId": null,
    "isMin": false
    }

    Let me know if you have any questions!