-
Notifications
You must be signed in to change notification settings - Fork 3
get_updates
Alberto Gonzalez edited this page Oct 29, 2015
·
1 revision
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.
GET /api/updates/?sid={sid}
Host: <server host name>
Accept: application/json
AuthToken: <authentication token returned from authenticate>
200 success
| Index | Value | Type | Returned |
|---|---|---|---|
| name | package name | string | always |
| arch | package architecture | string | always |
| version | package version | string | always |
GET /api/updates/?sid=1
Host: <server host name>
Accept: application/json
AuthToken: 8a00sjerhterqerjlqkjlk443l4j56869h4f_)(fjdkasHHHHHkdal324
{
"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"
}
]
}
}