Skip to content
Alberto Gonzalez edited this page Oct 29, 2015 · 1 revision

(GET)/updates

Description

Get the updates available for the specified system or systems. Included in the list is a property count for the number of upgrade packages available.

Request

Syntax

GET /api/updates/?sid={sid}
Host: <server host name>
Accept: application/json
AuthToken: <authentication token returned from authenticate>

Parameters

Response

200 success

Parameters

Index Value Type Returned
name package name string always
arch package architecture string always
version package version string always

Examples

Sample Request

GET /api/updates/?sid=1
Host: <server host name>
Accept: application/json
AuthToken: 8a00sjerhterqerjlqkjlk443l4j56869h4f_)(fjdkasHHHHHkdal324

Sample Response


{
    "updates": {
        "count": 23,
        "sid": 1,
        "sname": "UEB-CentOS6-lmc",
        "updates": [
            {
                "arch": "x86_64",
                "name": "bash",
                "preCheck": null,
                "version": "4.1.2-15.el6_5.2"
            },
            {
                "arch": "x86_64",
                "name": "libuv",
                "preCheck": null,
                "version": "1:0.10.29-1.el6"
            },
            ...
            {
                "arch": "noarch",
                "name": "unitrends-winbm",
                "preCheck": null,
                "version": "8.1.0-0.2015011402.CentOS6"
            }
         ]
    }
}

Clone this wiki locally