Controller: Updates

API Controller /nodeworx/updates
Required Permissions ["UPDATES"]
Action Description
apply Apply available updates for specified packages.
listAvailableUpdates Lists available updates.
listRecentUpdates Lists recent updates.
options Set auto-update options.
queryHistory Lists history for a specific package.

Action: apply (Added in version 4.8.0-393)

Apply available updates for specified packages.

Input Parameters

Name Type Notes Required?
package struct (integer) No*
* indicates that it's actually required, but probably already has a valid default value

Action: listAvailableUpdates (Added in version 4.8.0-393)

Lists available updates.

Example Output

array (
  'status' => 0,
  'payload' => 
  array (
  ),
)

Action: listRecentUpdates (Added in version 4.8.0-393)

Lists recent updates.

Example Output

array (
  'status' => 0,
  'payload' => 
  array (
    0 => 
    array (
      'name' => 'libpng-devel',
      'summary' => 'Development tools for programs to manipulate PNG image format files',
      'version' => '1.2.10',
      'release' => '17.el5_8',
      'repo' => 'updates',
      'has_history' => '1',
      'action_time' => '1335407956',
      'action' => 'updated',
    ),
    1 => 
    array (
      'name' => 'openssl-devel',
      'summary' => 'Files for development of applications which will use OpenSSL',
      'version' => '0.9.8e',
      'release' => '22.el5_8.3',
      'repo' => 'updates',
      'has_history' => '1',
      'action_time' => '1335407956',
      'action' => 'updated',
    ),
    2 => 
    array (
      'name' => 'openssl097a',
      'summary' => 'The OpenSSL toolkit',
      'version' => '0.9.7a',
      'release' => '11.el5_8.2',
      'repo' => 'updates',
      'has_history' => '1',
      'action_time' => '1335407951',
      'action' => 'updated',
    ),
  ),
)

Action: options

Set auto-update options.

Input Parameters

Name Type Notes Required?
osupdates integer
Example Values
1, 0
Example Default Value
1
No*
* indicates that it's actually required, but probably already has a valid default value

Action: queryHistory (Added in version 4.8.0-393)

Lists history for a specific package.

Input Parameters

Name Type Notes Required?
package string Yes