application program interface API Overview: system
( Return to API Overview )

Available methods

Description

Provides methods to access and modify many aspects of a system within the Red Hat Network.

Namespace: system


Method: addEntitlements

Description:
Add addon entitlements to a server. Entitlements a server already has are quietly ignored.

Parameters:

Returns: int - 1 on success, exception thrown otherwise.


Method: addNote

Description:
Add a new note to the given server.

Parameters:

Returns: int - 1 if note was added successfully.


Method: applyErrata

Description:
Apply errata updates to a system.

Parameters:

Returns: int - 1 on success.


Method: comparePackages

Description:
Compares the packages installed on two systems.

Parameters:

Returns: array


Method: createPackageProfile

Description:
Create a new stored Package Profile from a systems installed package list.

Parameters:

Returns: int - 1 on success


Method: deleteSystems

Description:
Delete systems given a list of system ids.

Parameters:

Returns: int - Number of systems deleted.


Method: downloadSystemId

Description:
Get the system ID file for a given server.

Parameters:

Returns: string


Method: getCpu

Description:
Gets the CPU information of a system.

Parameters:

Returns: struct (CPU)


Method: getCustomValues

Description:
Get the custom data values defined for the server.

Parameters:

Returns: struct (custom value)


Method: getDetails

Description:
Get system details.

Parameters:

Returns: struct (server details)


Method: getDevices

Description:
Gets a list of devices for a system.

Parameters:

Returns: array


Method: getDmi

Description:
Gets the DMI information of a system.

Parameters:

Returns: struct (DMI)


Method: getEntitlements

Description:
Gets the entitlements for a given server.

Parameters:

Returns: array


Method: getEventHistory

Description:
Returns a list history items associated with the system, ordered from oldest to newest.

Parameters:

Returns: array


Method: getId

Description:
Get a system ID for the given system name.

Parameters:

Returns: array


Method: getMemory

Description:
Gets the memory information for a system.

Parameters:

Returns: struct (memory)


Method: getNetwork

Description:
Get the IP address and hostname for a given server.

Parameters:

Returns: struct (network info)


Method: getNetworkDevices

Description:
Returns the network devices for the given server.

Parameters:

Returns: array


Method: getRegistrationDate

Description:
Returns the date the system was registered.

Parameters:

Returns: dateTime.iso8601 - The date the system was registered, in local time.


Method: getRelevantErrata

Description:
Provides an array of errata that are applicable to a given system.

Parameters:

Returns: array


Method: getRunningKernel

Description:
Returns the running kernel of the given system.

Parameters:

Returns: string


Method: getScriptResults

Description:
Fetch results from a script execution. Returns an empty array if no results are yet available.

Parameters:

Returns: array


Method: getSubscribedBaseChannel

Description:
Provides the base channel of a given system

Parameters:

Returns: struct (channel)


Method: getUnscheduledErrata

Description:
Provides an array of errata that are applicable to a given system.

Parameters:

Returns: array


Method: isNvreInstalled

Description:
Check if the package with the given NVRE is installed on given system.

Parameters:

Returns: int - 1 on success.


Method: isNvreInstalled

Description:
Is the package with the given NVRE installed on given system.

Parameters:

Returns: int - 1 on success.


Method: listActiveSystems

Description:
Returns a list of active servers visible to the user.

Parameters:

Returns: array