public class SystemHandler extends BaseHandler
VALID
Constructor and Description |
---|
SystemHandler() |
Modifier and Type | Method and Description |
---|---|
int |
addEntitlements(User loggedInUser,
java.lang.Integer serverId,
java.util.List<java.lang.String> entitlements)
Add addon entitlements to a server.
|
int |
addNote(User loggedInUser,
java.lang.Integer sid,
java.lang.String subject,
java.lang.String body)
Add a new note to the given server
|
int |
applyErrata(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> errataIds)
Deprecated.
being replaced by system.scheduleApplyErrata(string sessionKey,
int serverId, array[int errataId])
|
java.lang.Object[] |
comparePackageProfile(User loggedInUser,
java.lang.Integer serverId,
java.lang.String profileLabel)
Compare a system's packages against a package profile.
|
java.lang.Object[] |
comparePackages(User loggedInUser,
java.lang.Integer sid1,
java.lang.Integer sid2)
Compares the packages installed on two systems.
|
int |
createPackageProfile(User loggedInUser,
java.lang.Integer sid,
java.lang.String profileLabel,
java.lang.String desc)
Creates a new stored Package Profile
|
int |
createSystemRecord(User loggedInUser,
java.lang.Integer serverId,
java.lang.String ksLabel)
Creates a cobbler system record
|
int |
deleteCustomValues(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.String> keys)
Delete the custom values defined for the custom system information keys
provided from the given system.
|
java.lang.Integer |
deleteGuestProfiles(User loggedInUser,
java.lang.Integer hostId,
java.util.List<java.lang.String> guestNames)
Delete the specified list of guest profiles for a given host.
|
int |
deleteNote(User loggedInUser,
java.lang.Integer sid,
java.lang.Integer nid)
Deletes the given note from the server.
|
int |
deleteNotes(User loggedInUser,
java.lang.Integer sid)
Deletes all notes from the server.
|
int |
deletePackageProfile(User loggedInUser,
java.lang.Integer profileId)
Delete a package profile
|
int |
deleteSystem(java.lang.String clientCert)
Delete a system given its client certificate.
|
int |
deleteSystem(User loggedInUser,
java.lang.Integer serverId)
Delete a system given its server id synchronously
|
int |
deleteSystems(User loggedInUser,
java.util.List<java.lang.Integer> systemIds)
Delete systems given a list of system ids asynchronously.
|
int |
deleteTagFromSnapshot(User loggedInUser,
java.lang.Integer serverId,
java.lang.String tagName)
Deletes tag from system snapshot
|
java.lang.String |
downloadSystemId(User loggedInUser,
java.lang.Integer sid)
Get the system_id file for a given server
|
java.lang.Object[] |
getConnectionPath(User loggedInUser,
java.lang.Integer sid)
Get the list of proxies that the given system connects
through in order to reach the server.
|
java.lang.Object |
getCpu(User loggedInUser,
java.lang.Integer sid)
Gets the hardware profile of a specific system
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomValues(User loggedInUser,
java.lang.Integer sid)
Get the custom data values defined for the server
|
java.lang.Object |
getDetails(User loggedInUser,
java.lang.Integer serverId)
Get system details.
|
java.lang.Object[] |
getDevices(User loggedInUser,
java.lang.Integer sid)
Provides an array of devices for a system
|
java.lang.Object |
getDmi(User loggedInUser,
java.lang.Integer sid)
Gets the hardware profile of a specific system
|
java.lang.Object[] |
getEntitlements(User loggedInUser,
java.lang.Integer sid)
Gets the entitlements for a given server.
|
java.lang.Object[] |
getEventHistory(User loggedInUser,
java.lang.Integer sid)
Lists the server history of a system.
|
java.util.List<SystemOverview> |
getId(User loggedInUser,
java.lang.String name)
Get system IDs and last check in information for the given system name.
|
java.util.Map<java.lang.String,java.lang.Long> |
getMemory(User loggedInUser,
java.lang.Integer sid)
Gets the memory information of a specific system
|
java.util.Map<java.lang.String,java.lang.Object> |
getName(User loggedInUser,
java.lang.Integer serverId)
Get system name and last check in information for the given system ID.
|
java.util.Map<java.lang.String,java.lang.String> |
getNetwork(User loggedInUser,
java.lang.Integer sid)
Get the addresses and hostname for a given server
|
java.util.List<NetworkInterface> |
getNetworkDevices(User loggedInUser,
java.lang.Integer sid)
Get a list of network devices for a given server.
|
java.util.Map<java.lang.String,java.lang.Object> |
getOsaPing(User loggedInUser,
java.lang.Integer serverId)
get details about a ping sent to a system using OSA
|
java.util.Date |
getRegistrationDate(User loggedInUser,
java.lang.Integer sid)
Provides the Date that the system was registered
|
java.lang.Object[] |
getRelevantErrata(User loggedInUser,
java.lang.Integer sid)
Returns a list of all errata that are relevant to the system.
|
java.lang.Object[] |
getRelevantErrataByType(User loggedInUser,
java.lang.Integer serverId,
java.lang.String advisoryType)
Returns a list of all errata of the specified type that are relevant to the system.
|
java.lang.String |
getRunningKernel(User loggedInUser,
java.lang.Integer sid)
Returns the running kernel of the given system.
|
java.util.Map<java.lang.String,java.lang.Object> |
getScriptActionDetails(User loggedInUser,
java.lang.Integer actionId)
Returns action script contents for script run actions
|
java.lang.Object[] |
getScriptResults(User loggedInUser,
java.lang.Integer actionId)
Fetch results from a script execution.
|
java.lang.Object |
getSubscribedBaseChannel(User loggedInUser,
java.lang.Integer sid)
Gets the base channel for a particular system
|
java.util.Map<java.lang.String,java.lang.Integer> |
getSystemCurrencyMultipliers(User loggedInUser)
Get the System Currency score multipliers
|
java.util.List<java.util.Map<java.lang.String,java.lang.Long>> |
getSystemCurrencyScores(User loggedInUser)
Get System Currency scores for all servers the user has access to
|
Errata[] |
getUnscheduledErrata(User loggedInUser,
java.lang.Integer sid)
Lists all the relevant unscheduled errata for a system.
|
java.lang.String |
getUuid(User loggedInUser,
java.lang.Integer serverId)
Get the UUID for the given system ID.
|
java.util.Map<java.lang.String,java.lang.Object> |
getVariables(User loggedInUser,
java.lang.Integer serverId)
Returns a list of kickstart variables set for the specified server
|
int |
isNvreInstalled(User loggedInUser,
java.lang.Integer sid,
java.lang.String name,
java.lang.String version,
java.lang.String release)
Is the package with the given NVRE installed on given system
|
int |
isNvreInstalled(User loggedInUser,
java.lang.Integer sid,
java.lang.String name,
java.lang.String version,
java.lang.String release,
java.lang.String epoch)
Is the package with the given NVRE installed on given system
|
java.util.List<java.lang.String> |
listActivationKeys(User loggedInUser,
java.lang.Integer serverId)
List the activation keys the system was registered with.
|
java.util.List<SystemOverview> |
listActiveSystems(User loggedInUser)
Gets a list of all active systems visible to user
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listActiveSystemsDetails(User loggedInUser,
java.util.List<java.lang.Integer> serverIds)
Given a list of server ids, will return details about the
systems that are active and visible to the user
|
java.lang.Object[] |
listAdministrators(User loggedInUser,
java.lang.Integer sid)
Lists the administrators of a given system.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listAllInstallablePackages(User loggedInUser,
java.lang.Integer sid)
Get the list of all installable packages for a given system.
|
java.lang.Object[] |
listBaseChannels(User loggedInUser,
java.lang.Integer sid)
Deprecated.
being replaced by listSubscribableBaseChannels(string sessionKey,
int serverId)
|
java.lang.Object[] |
listChildChannels(User loggedInUser,
java.lang.Integer sid)
Deprecated.
being replaced by listSubscribableChildChannels(string sessionKey,
int serverId)
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listDuplicatesByHostname(User loggedInUser)
List Duplicates by Hostname
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listDuplicatesByIp(User loggedInUser)
List Duplicates by IP
|
java.util.List |
listDuplicatesByMac(User loggedInUser)
List Duplicates by Mac Address
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listExtraPackages(User loggedInUser,
java.lang.Integer serverId)
List extra packages for given system
|
java.lang.Object[] |
listGroups(User loggedInUser,
java.lang.Integer sid)
List the available groups for a given system
|
java.util.List<SystemOverview> |
listInactiveSystems(User loggedInUser)
Gets the list of inactive systems using the default inactive period
|
java.util.List<SystemOverview> |
listInactiveSystems(User loggedInUser,
java.lang.Integer days)
Gets the list of inactive systems using the provided inactive period
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listLatestAvailablePackage(User loggedInUser,
java.util.List<java.lang.Integer> systemIds,
java.lang.String name)
Get the latest available version of a package for each system
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listLatestInstallablePackages(User loggedInUser,
java.lang.Integer sid)
Get the list of latest installable packages for a given system.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listLatestUpgradablePackages(User loggedInUser,
java.lang.Integer sid)
Get the list of latest upgradable packages for a given system
|
java.lang.Object[] |
listNewerInstalledPackages(User loggedInUser,
java.lang.Integer sid,
java.lang.String name,
java.lang.String version,
java.lang.String release,
java.lang.String epoch)
Given a package name + version + release + epoch, returns the list of
packages installed on the system w/ the same name that are newer.
|
java.util.Set<Note> |
listNotes(User loggedInUser,
java.lang.Integer sid)
Lists all of the notes that are associated with a system.
|
java.lang.Object[] |
listOlderInstalledPackages(User loggedInUser,
java.lang.Integer sid,
java.lang.String name,
java.lang.String version,
java.lang.String release,
java.lang.String epoch)
Given a package name + version + release + epoch, returns the list of
packages installed on the system w/ the same name that are older.
|
java.lang.Object[] |
listOutOfDateSystems(User loggedInUser)
Returns list of systems which have packages needing updates
|
java.lang.Object[] |
listPackageProfiles(User loggedInUser)
Lists the package profiles in this organization
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listPackages(User loggedInUser,
java.lang.Integer sid)
List the installed packages for a given system.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listPackagesFromChannel(User loggedInUser,
java.lang.Integer sid,
java.lang.String channelLabel)
Lists all of the packages that are installed on a system that also belong
to a particular channel.
|
java.lang.Object[] |
listPhysicalSystems(User loggedInUser)
Gets a list of all Physical systems visible to user
|
java.lang.Object[] |
listSubscribableBaseChannels(User loggedInUser,
java.lang.Integer sid)
Gets a list of base channels subscribable by the logged in user for the server with
the given id.
|
java.lang.Object[] |
listSubscribableChildChannels(User loggedInUser,
java.lang.Integer sid)
List the child channels that this system can subscribe to.
|
java.util.List<Channel> |
listSubscribedChildChannels(User loggedInUser,
java.lang.Integer sid)
List the child channels that this system is subscribed to.
|
java.lang.Object[] |
listSuggestedReboot(User loggedInUser)
Method to list systems that require reboot
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listSystemEvents(User loggedInUser,
java.lang.Integer sid)
List Events for a given server.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listSystemEvents(User loggedInUser,
java.lang.Integer sid,
java.lang.String actionType)
List Events for a given server.
|
java.lang.Object[] |
listSystems(User loggedInUser)
Gets a list of all systems visible to user
|
java.lang.Object[] |
listSystemsWithExtraPackages(User loggedInUser)
List systems with extra packages
|
java.util.List<SystemOverview> |
listSystemsWithPackage(User loggedInUser,
java.lang.Integer pid)
returns a list of SystemOverview objects that contain the given package id
|
java.util.List<SystemOverview> |
listSystemsWithPackage(User loggedInUser,
java.lang.String name,
java.lang.String version,
java.lang.String release)
returns a list of SystemOverview objects that contain a package given it's NVR
|
java.util.List<SystemOverview> |
listUngroupedSystems(User loggedInUser)
list systems that are not in any system group
|
java.util.List<SystemOverview> |
listUserSystems(User loggedInUser)
List systems for the logged in user
|
java.util.List<SystemOverview> |
listUserSystems(User loggedInUser,
java.lang.String login)
List systems for a given user
|
java.util.List<VirtualSystemOverview> |
listVirtualGuests(User loggedInUser,
java.lang.Integer sid)
Gets a list of virtual guests for the given host
|
java.util.List<SystemOverview> |
listVirtualHosts(User loggedInUser)
Gets a list of virtual hosts for the current user
|
java.lang.String |
obtainReactivationKey(java.lang.String clientCert)
Get a reactivation key for this server.
|
java.lang.String |
obtainReactivationKey(User loggedInUser,
java.lang.Integer sid)
Get a reactivation key for this server.
|
int |
provisionSystem(User loggedInUser,
java.lang.Integer serverId,
java.lang.String profileName)
Provision a system using the specified kickstart profile.
|
int |
provisionSystem(User loggedInUser,
java.lang.Integer serverId,
java.lang.String profileName,
java.util.Date earliestDate)
Provision a system using the specified kickstart profile at specified time.
|
int |
provisionVirtualGuest(User loggedInUser,
java.lang.Integer sid,
java.lang.String guestName,
java.lang.String profileName)
Provision a guest on the server specified.
|
int |
provisionVirtualGuest(User loggedInUser,
java.lang.Integer sid,
java.lang.String guestName,
java.lang.String profileName,
java.lang.Integer memoryMb,
java.lang.Integer vcpus,
java.lang.Integer storageGb)
Provision a guest on the server specified.
|
int |
provisionVirtualGuest(User loggedInUser,
java.lang.Integer sid,
java.lang.String guestName,
java.lang.String profileName,
java.lang.Integer memoryMb,
java.lang.Integer vcpus,
java.lang.Integer storageGb,
java.lang.String macAddress)
Provision a guest on the server specified.
|
int |
removeEntitlements(User loggedInUser,
java.lang.Integer serverId,
java.util.List<java.lang.String> entitlements)
Remove addon entitlements from a server.
|
java.util.List<java.lang.Long> |
scheduleApplyErrata(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> errataIds)
Schedules an action to apply errata updates to a system.
|
java.util.List<java.lang.Long> |
scheduleApplyErrata(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> errataIds,
java.lang.Boolean allowModules)
Schedules an action to apply errata updates to a system.
|
java.util.List<java.lang.Long> |
scheduleApplyErrata(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> errataIds,
java.util.Date earliestOccurrence)
Schedules an action to apply errata updates to a system at a specified time.
|
java.util.List<java.lang.Long> |
scheduleApplyErrata(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> errataIds,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedules an action to apply errata updates to a system at a specified time.
|
java.util.List<java.lang.Long> |
scheduleApplyErrata(User loggedInUser,
java.util.List<java.lang.Integer> serverIds,
java.util.List<java.lang.Integer> errataIds)
Schedules an action to apply errata updates to multiple systems.
|
java.util.List<java.lang.Long> |
scheduleApplyErrata(User loggedInUser,
java.util.List<java.lang.Integer> serverIds,
java.util.List<java.lang.Integer> errataIds,
java.lang.Boolean allowModules)
Schedules an action to apply errata updates to multiple systems.
|
java.util.List<java.lang.Long> |
scheduleApplyErrata(User loggedInUser,
java.util.List<java.lang.Integer> serverIds,
java.util.List<java.lang.Integer> errataIds,
java.util.Date earliestOccurrence)
Schedules an action to apply errata updates to multiple systems at a specified time.
|
java.util.List<java.lang.Long> |
scheduleApplyErrata(User loggedInUser,
java.util.List<java.lang.Integer> serverIds,
java.util.List<java.lang.Integer> errataIds,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedules an action to apply errata updates to multiple systems at a specified time.
|
int |
scheduleCertificateUpdate(User loggedInUser,
java.lang.Integer serverId)
Schedule update of client certificate
|
int |
scheduleCertificateUpdate(User loggedInUser,
java.lang.Integer serverId,
java.util.Date date)
Schedule update of client certificate at given date and time
|
int |
scheduleGuestAction(User loggedInUser,
java.lang.Integer sid,
java.lang.String state)
schedules the specified action on the guest
|
int |
scheduleGuestAction(User loggedInUser,
java.lang.Integer sid,
java.lang.String state,
java.util.Date date)
schedules the specified action on the guest
|
java.lang.Long |
scheduleHardwareRefresh(User loggedInUser,
java.lang.Integer sid,
java.util.Date earliestOccurrence)
Schedule a hardware refresh for a system.
|
java.lang.Long |
schedulePackageInstall(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliestOccurrence)
Schedule package installation for a system.
|
java.lang.Long |
schedulePackageInstall(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedule package installation for a system.
|
java.lang.Long[] |
schedulePackageInstall(User loggedInUser,
java.util.List<java.lang.Integer> sids,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliestOccurrence)
Schedule package installation for several systems.
|
java.lang.Long[] |
schedulePackageInstall(User loggedInUser,
java.util.List<java.lang.Integer> sids,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedule package installation for several systems.
|
java.lang.Long |
schedulePackageInstallByNevra(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList,
java.util.Date earliestOccurrence)
Schedule package installation for a system.
|
java.lang.Long |
schedulePackageInstallByNevra(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedule package installation for a system.
|
java.lang.Long[] |
schedulePackageInstallByNevra(User loggedInUser,
java.util.List<java.lang.Integer> sids,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList,
java.util.Date earliestOccurrence)
Schedule package installation for several systems.
|
java.lang.Long[] |
schedulePackageInstallByNevra(User loggedInUser,
java.util.List<java.lang.Integer> sids,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedule package installation for several systems.
|
int |
schedulePackageRefresh(User loggedInUser,
java.lang.Integer sid,
java.util.Date earliestOccurrence)
Schedule a package list refresh for a system.
|
int |
schedulePackageRemove(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliestOccurrence)
Schedule package removal for a system.
|
int |
schedulePackageRemove(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedule package removal for a system.
|
java.lang.Long[] |
schedulePackageRemove(User loggedInUser,
java.util.List<java.lang.Integer> sids,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliestOccurrence)
Schedule package removal for several systems.
|
java.lang.Long[] |
schedulePackageRemove(User loggedInUser,
java.util.List<java.lang.Integer> sids,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedule package removal for several systems.
|
int |
schedulePackageRemoveByNevra(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList,
java.util.Date earliestOccurrence)
Schedule package removal for a system using it's nevra.
|
int |
schedulePackageRemoveByNevra(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedule package removal for a system using it's nevra.
|
java.lang.Long[] |
schedulePackageRemoveByNevra(User loggedInUser,
java.util.List<java.lang.Integer> sids,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList,
java.util.Date earliestOccurrence)
Schedule package removal for several systems using it's nevra.
|
java.lang.Long[] |
schedulePackageRemoveByNevra(User loggedInUser,
java.util.List<java.lang.Integer> sids,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList,
java.util.Date earliestOccurrence,
java.lang.Boolean allowModules)
Schedule package removal for several systems using it's nevra.
|
java.lang.Long |
scheduleReboot(User loggedInUser,
java.lang.Integer sid,
java.util.Date earliestOccurrence)
Schedule a system reboot
|
java.lang.Integer |
scheduleScriptRun(User loggedInUser,
java.lang.Integer sid,
java.lang.String username,
java.lang.String groupname,
java.lang.Integer timeout,
java.lang.String script,
java.util.Date earliest)
Schedule a script to run.
|
java.lang.Integer |
scheduleScriptRun(User loggedInUser,
java.util.List<java.lang.Integer> systemIds,
java.lang.String username,
java.lang.String groupname,
java.lang.Integer timeout,
java.lang.String script,
java.util.Date earliest)
Schedule a script to run.
|
java.lang.Integer |
scheduleScriptRun(User loggedInUser,
java.lang.String label,
java.lang.Integer sid,
java.lang.String username,
java.lang.String groupname,
java.lang.Integer timeout,
java.lang.String script,
java.util.Date earliest)
Schedule a script to run.
|
java.lang.Integer |
scheduleScriptRun(User loggedInUser,
java.lang.String label,
java.util.List<java.lang.Integer> systemIds,
java.lang.String username,
java.lang.String groupname,
java.lang.Integer timeout,
java.lang.String script,
java.util.Date earliest)
Schedule a script to run.
|
java.lang.Long |
scheduleSyncPackagesWithSystem(User loggedInUser,
java.lang.Integer targetServerId,
java.lang.Integer sourceServerId,
java.util.List<java.lang.Integer> packageIds,
java.util.Date earliest)
Sync packages from a source system to a target.
|
java.util.List<SystemOverview> |
searchByName(User loggedInUser,
java.lang.String regexp)
Searching the system names using the regular expression
passed in
|
int |
sendOsaPing(User loggedInUser,
java.lang.Integer serverId)
send a ping to a system using OSA
|
int |
setBaseChannel(User loggedInUser,
java.lang.Integer sid,
java.lang.Integer cid)
Deprecated.
being replaced by system.setBaseChannel(string sessionKey,
int serverId, string channelLabel)
|
int |
setBaseChannel(User loggedInUser,
java.lang.Integer sid,
java.lang.String channelLabel)
Sets the base channel for the given server to the given channel
|
int |
setChildChannels(User loggedInUser,
java.lang.Integer sid,
java.util.List channelIdsOrLabels)
Subscribe the given server to the child channels provided.
|
int |
setCustomValues(User loggedInUser,
java.lang.Integer sid,
java.util.Map<java.lang.String,java.lang.String> values)
Set custom values for the specified server.
|
java.lang.Integer |
setDetails(User loggedInUser,
java.lang.Integer serverId,
java.util.Map<java.lang.String,java.lang.Object> details)
Set server details.
|
int |
setGroupMembership(User loggedInUser,
java.lang.Integer sid,
java.lang.Integer sgid,
boolean member)
Set a servers membership in a given group
|
int |
setGuestCpus(User loggedInUser,
java.lang.Integer sid,
java.lang.Integer numOfCpus)
Schedules an actino to set the guests CPU allocation
|
int |
setGuestMemory(User loggedInUser,
java.lang.Integer sid,
java.lang.Integer memory)
Schedules an action to set the guests memory usage
|
java.lang.Integer |
setLockStatus(User loggedInUser,
java.lang.Integer serverId,
boolean lockStatus)
Set server lock status.
|
int |
setPrimaryInterface(User loggedInUser,
java.lang.Integer serverId,
java.lang.String interfaceName)
Sets new primary network interface
|
int |
setProfileName(User loggedInUser,
java.lang.Integer sid,
java.lang.String name)
Set the profile name for the server
|
int |
setupStaticNetwork(java.lang.String clientcert,
java.util.Map<java.lang.String,java.lang.Object> data)
Method to setup the static network configuration for a given server
This is used by spacewalkkoan if the user selects static networking option
in the advanced configuration section during provisioning.
|
int |
setupStaticNetwork(java.lang.String clientcert,
java.util.Map<java.lang.String,java.lang.Object> data,
java.util.Map<java.lang.String,java.lang.Object> data6)
Method to setup the static network IPv4 and IPv6 configuration for a given server
This is used by spacewalkkoan if the user selects static networking option
in the advanced configuration section during provisioning.
|
int |
setVariables(User loggedInUser,
java.lang.Integer serverId,
java.lang.Boolean netboot,
java.util.Map<java.lang.String,java.lang.Object> variables)
Sets a list of kickstart variables for the specified server
|
int |
tagLatestSnapshot(User loggedInUser,
java.lang.Integer serverId,
java.lang.String tagName)
Tags latest system snapshot
|
java.util.Map |
transitionDataForSystem(java.lang.String clientCert)
returns uuid and other transition data for the system according to the mapping file
|
int |
unentitle(java.lang.String clientCert)
Unentitle the system completely
|
int |
upgradeEntitlement(User loggedInUser,
java.lang.Integer sid,
java.lang.String entitlementLevel)
Adds an entitlement to a given server.
|
User |
whoRegistered(User loggedInUser,
java.lang.Integer sid)
Retrieve the user who registered a particular system
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExists
public java.lang.String obtainReactivationKey(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionFaultException
- A FaultException is thrown if:
- The server corresponding to the sid cannot be found
- The server doesn't have the "agent smith" featurepublic java.lang.String obtainReactivationKey(java.lang.String clientCert) throws FaultException
clientCert
- client certificate of the system.FaultException
- A FaultException is thrown if:
- The server corresponding to the sid cannot be found
- The server doesn't have the "agent smith" featureMethodInvalidParamException
- thrown if certificate is invalid.public int upgradeEntitlement(User loggedInUser, java.lang.Integer sid, java.lang.String entitlementLevel) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionentitlementLevel
- The entitlement to add to the serverFaultException
- A FaultException is thrown if:
- The server corresponding to the sid cannot be found
- The logged in user cannot access the system
- The entitlement cannot be found
- The server cannot be entitled with the given entitlementpublic int setChildChannels(User loggedInUser, java.lang.Integer sid, java.util.List channelIdsOrLabels) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionchannelIdsOrLabels
- The list of channel ids or labels this server should
be subscribed to.FaultException
- A FaultException is thrown if:
- the server corresponding to sid cannot be found.
- the channel corresponding to cid is not a valid child channel.
- the user doesn't have subscribe access to any one of the current or
new child channels.@Deprecated public int setBaseChannel(User loggedInUser, java.lang.Integer sid, java.lang.Integer cid) throws FaultException
loggedInUser
- The current usersid
- The id for the servercid
- The id for the channelFaultException
- A FaultException is thrown if:
- the server corresponding to sid cannot be found.
- the channel corresponding to cid is not a base channel.
- the user doesn't have subscribe access to either the current or
the new base channel.public int setBaseChannel(User loggedInUser, java.lang.Integer sid, java.lang.String channelLabel) throws FaultException
loggedInUser
- The current usersid
- The id for the serverchannelLabel
- The id for the channelFaultException
- A FaultException is thrown if:
- the server corresponding to sid cannot be found.
- the channel corresponding to cid is not a base channel.
- the user doesn't have subscribe access to either the current or
the new base channel.@Deprecated public java.lang.Object[] listBaseChannels(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Object[] listSubscribableBaseChannels(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Object[] listSystems(User loggedInUser) throws FaultException
loggedInUser
- The current userFaultException
- A FaultException is thrown if a valid user can not be found
from the passed in session keypublic java.util.List<SystemOverview> listActiveSystems(User loggedInUser) throws FaultException
loggedInUser
- The current userFaultException
- A FaultException is thrown if a valid user can not be found
from the passed in session keypublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listActiveSystemsDetails(User loggedInUser, java.util.List<java.lang.Integer> serverIds) throws FaultException
loggedInUser
- The current userserverIds
- A list of ids to get info forFaultException
- A FaultException is thrown if the user cannot
be found from the session key@Deprecated public java.lang.Object[] listChildChannels(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Object[] listSubscribableChildChannels(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Object[] listOlderInstalledPackages(User loggedInUser, java.lang.Integer sid, java.lang.String name, java.lang.String version, java.lang.String release, java.lang.String epoch) throws FaultException
loggedInUser
- The current usersid
- The id of the system you're checkingname
- The name of the package you're checkingversion
- The version of the packagerelease
- The release of the packageepoch
- The epoch of the packageFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found or if no package with the given name is found.public java.lang.Object[] listNewerInstalledPackages(User loggedInUser, java.lang.Integer sid, java.lang.String name, java.lang.String version, java.lang.String release, java.lang.String epoch) throws FaultException
loggedInUser
- The current usersid
- The id of the system you're checkingname
- The name of the package you're checkingversion
- The version of the packagerelease
- The release of the packageepoch
- The epoch of the packageFaultException
- A FaultException is thrown if the server
corresponding to sid cannot be found or if no package with the given name
is found.public int isNvreInstalled(User loggedInUser, java.lang.Integer sid, java.lang.String name, java.lang.String version, java.lang.String release) throws FaultException
loggedInUser
- The current usersid
- The sid for the server in questionname
- The name of the packageversion
- The version of the packagerelease
- The release of the packageFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public int isNvreInstalled(User loggedInUser, java.lang.Integer sid, java.lang.String name, java.lang.String version, java.lang.String release, java.lang.String epoch) throws FaultException
loggedInUser
- The current usersid
- The sid for the server in questionname
- The name of the packageversion
- The version of the packagerelease
- The release of the packageepoch
- The epoch of the packageFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listLatestUpgradablePackages(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id for the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listAllInstallablePackages(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id for the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listLatestInstallablePackages(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id for the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listLatestAvailablePackage(User loggedInUser, java.util.List<java.lang.Integer> systemIds, java.lang.String name) throws FaultException
loggedInUser
- The current usersystemIds
- The IDs of the systems in questionname
- the package nameFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Object[] getEntitlements(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id for the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.String downloadSystemId(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server
corresponding to sid cannot be found or if the system_id file cannot
be generated.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listPackages(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Integer deleteGuestProfiles(User loggedInUser, java.lang.Integer hostId, java.util.List<java.lang.String> guestNames)
loggedInUser
- The current userhostId
- The id of the host system.guestNames
- List of guest names to delete.public int deleteSystems(User loggedInUser, java.util.List<java.lang.Integer> systemIds) throws FaultException
loggedInUser
- The current usersystemIds
- A list of systems ids to deleteFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public int deleteSystem(java.lang.String clientCert) throws FaultException
clientCert
- client certificate of the system.FaultException
- A FaultException is thrown if:
- The server corresponding to the sid cannot be foundMethodInvalidParamException
- thrown if certificate is invalid.public int deleteSystem(User loggedInUser, java.lang.Integer serverId) throws FaultException
loggedInUser
- The current userserverId
- The id of the server in questionFaultException
- A FaultException is thrown if:
- The server corresponding to the sid cannot be foundpublic java.util.Map<java.lang.String,java.lang.String> getNetwork(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.List<NetworkInterface> getNetworkDevices(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public int setGroupMembership(User loggedInUser, java.lang.Integer sid, java.lang.Integer sgid, boolean member) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionsgid
- The id of the server groupmember
- Should this server be a member of this group?FaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Object[] listGroups(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id for the server in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.List<SystemOverview> listUserSystems(User loggedInUser, java.lang.String login) throws FaultException
loggedInUser
- The current userlogin
- The login for the target userFaultException
- A FaultException is thrown if the user doesn't have access
to lookup the user corresponding to login or if the user does not exist.public java.util.List<SystemOverview> listUserSystems(User loggedInUser)
loggedInUser
- The current userpublic int setCustomValues(User loggedInUser, java.lang.Integer sid, java.util.Map<java.lang.String,java.lang.String> values) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionvalues
- A map containing the new set of custom data values for this serverFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.Map<java.lang.String,java.lang.String> getCustomValues(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found or if the name is invalid.public int deleteCustomValues(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.String> keys) throws FaultException
loggedInUser
- The current usersid
- The id of the server in questionkeys
- A list of custom data labels/keys to delete from the serverFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public int setProfileName(User loggedInUser, java.lang.Integer sid, java.lang.String name) throws FaultException
loggedInUser
- The current usersid
- The id for the server in questionname
- The new profile name for the serverFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found or if the name is invalid.public int addNote(User loggedInUser, java.lang.Integer sid, java.lang.String subject, java.lang.String body) throws FaultException
loggedInUser
- The current usersid
- The id for the server to add the note tosubject
- The subject of the notebody
- The body for the noteFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public int deleteNote(User loggedInUser, java.lang.Integer sid, java.lang.Integer nid)
loggedInUser
- The current usersid
- identifies the server on which the note residesnid
- identifies the note to deleteNoSuchSystemException
- A NoSuchSystemException is thrown if the server
corresponding to sid cannot be found.public int deleteNotes(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- identifies the server on which the note residesNoSuchSystemException
- A NoSuchSystemException is thrown if the server
corresponding to sid cannot be found.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listSystemEvents(User loggedInUser, java.lang.Integer sid, java.lang.String actionType)
loggedInUser
- The current usersid
- The id of the server you are wanting to lookupactionType
- type of the actionpublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listSystemEvents(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- The id of the server you are wanting to lookuppublic int provisionVirtualGuest(User loggedInUser, java.lang.Integer sid, java.lang.String guestName, java.lang.String profileName)
loggedInUser
- The current usersid
- of server to provision guest onguestName
- to assign to guestprofileName
- of Kickstart Profile to use.public int provisionSystem(User loggedInUser, java.lang.Integer serverId, java.lang.String profileName) throws FaultException
loggedInUser
- The current userserverId
- of the system to be provisionedprofileName
- of Kickstart Profile to be used.FaultException
- A FaultException is thrown if the server corresponding to
id cannot be found or kickstart profile is not found.public int provisionSystem(User loggedInUser, java.lang.Integer serverId, java.lang.String profileName, java.util.Date earliestDate) throws FaultException
loggedInUser
- The current userserverId
- of the system to be provisionedprofileName
- of Kickstart Profile to be used.earliestDate
- when the kickstart needs to be scheduledFaultException
- A FaultException is thrown if the server corresponding to
id cannot be found or kickstart profile is not found.public int provisionVirtualGuest(User loggedInUser, java.lang.Integer sid, java.lang.String guestName, java.lang.String profileName, java.lang.Integer memoryMb, java.lang.Integer vcpus, java.lang.Integer storageGb)
loggedInUser
- The current usersid
- of server to provision guest onguestName
- to assign to guestprofileName
- of Kickstart Profile to use.memoryMb
- to allocate to the guest (maxMemory)vcpus
- to assignstorageGb
- to assign to diskpublic int provisionVirtualGuest(User loggedInUser, java.lang.Integer sid, java.lang.String guestName, java.lang.String profileName, java.lang.Integer memoryMb, java.lang.Integer vcpus, java.lang.Integer storageGb, java.lang.String macAddress)
loggedInUser
- The current usersid
- of server to provision guest onguestName
- to assign to guestprofileName
- of Kickstart Profile to use.memoryMb
- to allocate to the guest (maxMemory)vcpus
- to assignstorageGb
- to assign to diskmacAddress
- to assignpublic java.util.List<SystemOverview> getId(User loggedInUser, java.lang.String name)
loggedInUser
- The current username
- of the serverpublic java.util.Map<java.lang.String,java.lang.Object> getName(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- The current userserverId
- of the serverpublic java.util.Date getRegistrationDate(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- the ServerId of the systempublic java.util.List<Channel> listSubscribedChildChannels(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.List<SystemOverview> searchByName(User loggedInUser, java.lang.String regexp)
loggedInUser
- The current userregexp
- regular expression to search with. See the api for the
Patter object for java specific regular expression detailspublic java.lang.Object[] listAdministrators(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.String getRunningKernel(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- Server ID to lookup.public java.lang.Object[] getEventHistory(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Object[] getRelevantErrata(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.lang.Object[] getRelevantErrataByType(User loggedInUser, java.lang.Integer serverId, java.lang.String advisoryType) throws FaultException
loggedInUser
- The current userserverId
- serverIdadvisoryType
- The type of advisory (one of the following:
"Security Advisory", "Product Enhancement Advisory",
"Bug Fix Advisory")FaultException
- A FaultException is thrown if a valid user can not be found
from the passed in session key or if the server corresponding to the serverId
cannot be found.public Errata[] getUnscheduledErrata(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public java.util.List<java.lang.Long> scheduleApplyErrata(User loggedInUser, java.util.List<java.lang.Integer> serverIds, java.util.List<java.lang.Integer> errataIds)
loggedInUser
- The current userserverIds
- List of server IDs to apply the errata to (as Integers)errataIds
- List of errata IDs to apply (as Integers)public java.util.List<java.lang.Long> scheduleApplyErrata(User loggedInUser, java.util.List<java.lang.Integer> serverIds, java.util.List<java.lang.Integer> errataIds, java.lang.Boolean allowModules)
loggedInUser
- The current userserverIds
- List of server IDs to apply the errata to (as Integers)errataIds
- List of errata IDs to apply (as Integers)allowModules
- Allow this API call, despite modular content being presentpublic java.util.List<java.lang.Long> scheduleApplyErrata(User loggedInUser, java.util.List<java.lang.Integer> serverIds, java.util.List<java.lang.Integer> errataIds, java.util.Date earliestOccurrence)
loggedInUser
- The current userserverIds
- List of server IDs to apply the errata to (as Integers)errataIds
- List of errata IDs to apply (as Integers)earliestOccurrence
- Earliest occurrence of the errata updatepublic java.util.List<java.lang.Long> scheduleApplyErrata(User loggedInUser, java.util.List<java.lang.Integer> serverIds, java.util.List<java.lang.Integer> errataIds, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current userserverIds
- List of server IDs to apply the errata to (as Integers)errataIds
- List of errata IDs to apply (as Integers)earliestOccurrence
- Earliest occurrence of the errata updateallowModules
- Allow this API call, despite modular content being present@Deprecated public int applyErrata(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> errataIds)
loggedInUser
- The current usersid
- ID of the servererrataIds
- List of errata IDs to apply (as Integers)public java.util.List<java.lang.Long> scheduleApplyErrata(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> errataIds)
loggedInUser
- The current usersid
- ID of the servererrataIds
- List of errata IDs to apply (as Integers)public java.util.List<java.lang.Long> scheduleApplyErrata(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> errataIds, java.lang.Boolean allowModules)
loggedInUser
- The current usersid
- ID of the servererrataIds
- List of errata IDs to apply (as Integers)allowModules
- Allow this API call, despite modular content being presentpublic java.util.List<java.lang.Long> scheduleApplyErrata(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> errataIds, java.util.Date earliestOccurrence)
loggedInUser
- The current usersid
- ID of the servererrataIds
- List of errata IDs to apply (as Integers)earliestOccurrence
- Earliest occurrence of the errata updatepublic java.util.List<java.lang.Long> scheduleApplyErrata(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> errataIds, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersid
- ID of the servererrataIds
- List of errata IDs to apply (as Integers)earliestOccurrence
- Earliest occurrence of the errata updateallowModules
- Allow this API call, despite modular content being presentpublic java.lang.Object[] comparePackages(User loggedInUser, java.lang.Integer sid1, java.lang.Integer sid2)
loggedInUser
- The current usersid1
- This system's IDsid2
- Other system's IDpublic java.lang.Object getDmi(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- This system's IDpublic java.lang.Object getCpu(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- This system's IDpublic java.util.Map<java.lang.String,java.lang.Long> getMemory(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- This system's IDpublic java.lang.Object[] getDevices(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- This system's IDpublic java.lang.Long[] schedulePackageInstall(User loggedInUser, java.util.List<java.lang.Integer> sids, java.util.List<java.lang.Integer> packageIds, java.util.Date earliestOccurrence)
loggedInUser
- The current usersids
- IDs of the serverspackageIds
- List of package IDs to install (as Integers)earliestOccurrence
- Earliest occurrence of the package installpublic java.lang.Long[] schedulePackageInstall(User loggedInUser, java.util.List<java.lang.Integer> sids, java.util.List<java.lang.Integer> packageIds, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersids
- IDs of the serverspackageIds
- List of package IDs to install (as Integers)earliestOccurrence
- Earliest occurrence of the package installallowModules
- Allow this API call, despite modular content being presentpublic java.lang.Long schedulePackageInstall(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> packageIds, java.util.Date earliestOccurrence)
loggedInUser
- The current usersid
- ID of the serverpackageIds
- List of package IDs to install (as Integers)earliestOccurrence
- Earliest occurrence of the package installpublic java.lang.Long schedulePackageInstall(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> packageIds, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersid
- ID of the serverpackageIds
- List of package IDs to install (as Integers)earliestOccurrence
- Earliest occurrence of the package installallowModules
- Allow this API call, despite modular content being presentpublic java.lang.Long[] schedulePackageInstallByNevra(User loggedInUser, java.util.List<java.lang.Integer> sids, java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList, java.util.Date earliestOccurrence)
loggedInUser
- The current usersids
- IDs of the serverspackageNevraList
- array of dictionaries with package nevraearliestOccurrence
- Earliest occurrence of the package installpublic java.lang.Long[] schedulePackageInstallByNevra(User loggedInUser, java.util.List<java.lang.Integer> sids, java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersids
- IDs of the serverspackageNevraList
- array of dictionaries with package nevraearliestOccurrence
- Earliest occurrence of the package installallowModules
- Allow this API call, despite modular content being presentpublic java.lang.Long schedulePackageInstallByNevra(User loggedInUser, java.lang.Integer sid, java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList, java.util.Date earliestOccurrence)
loggedInUser
- The current usersid
- ID of the serverpackageNevraList
- array of dictionaries with package nevraearliestOccurrence
- Earliest occurrence of the package installpublic java.lang.Long schedulePackageInstallByNevra(User loggedInUser, java.lang.Integer sid, java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersid
- ID of the serverpackageNevraList
- array of dictionaries with package nevraearliestOccurrence
- Earliest occurrence of the package installallowModules
- Allow this API call, despite modular content being presentpublic java.lang.Long[] schedulePackageRemove(User loggedInUser, java.util.List<java.lang.Integer> sids, java.util.List<java.lang.Integer> packageIds, java.util.Date earliestOccurrence)
loggedInUser
- The current usersids
- IDs of the serverspackageIds
- List of package IDs to install (as Integers)earliestOccurrence
- Earliest occurrence of the package removalpublic java.lang.Long[] schedulePackageRemove(User loggedInUser, java.util.List<java.lang.Integer> sids, java.util.List<java.lang.Integer> packageIds, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersids
- IDs of the serverspackageIds
- List of package IDs to install (as Integers)earliestOccurrence
- Earliest occurrence of the package removalallowModules
- Allow this API call, despite modular content being presentpublic int schedulePackageRemove(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> packageIds, java.util.Date earliestOccurrence)
loggedInUser
- The current usersid
- ID of the serverpackageIds
- List of package IDs to remove (as Integers)earliestOccurrence
- Earliest occurrence of the package removalpublic int schedulePackageRemove(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.Integer> packageIds, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersid
- ID of the serverpackageIds
- List of package IDs to remove (as Integers)earliestOccurrence
- Earliest occurrence of the package removalallowModules
- Allow this API call, despite modular content being presentpublic java.lang.Long[] schedulePackageRemoveByNevra(User loggedInUser, java.util.List<java.lang.Integer> sids, java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList, java.util.Date earliestOccurrence)
loggedInUser
- The current usersids
- IDs of the serverspackageNevraList
- array of dictionaries with package nevraearliestOccurrence
- Earliest occurrence of the package removalpublic java.lang.Long[] schedulePackageRemoveByNevra(User loggedInUser, java.util.List<java.lang.Integer> sids, java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersids
- IDs of the serverspackageNevraList
- array of dictionaries with package nevraearliestOccurrence
- Earliest occurrence of the package removalallowModules
- Allow this API call, despite modular content being presentpublic int schedulePackageRemoveByNevra(User loggedInUser, java.lang.Integer sid, java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList, java.util.Date earliestOccurrence)
loggedInUser
- The current usersid
- ID of the serverpackageNevraList
- array of dictionaries with package nevraearliestOccurrence
- Earliest occurrence of the package removalpublic int schedulePackageRemoveByNevra(User loggedInUser, java.lang.Integer sid, java.util.List<java.util.Map<java.lang.String,java.lang.String>> packageNevraList, java.util.Date earliestOccurrence, java.lang.Boolean allowModules)
loggedInUser
- The current usersid
- ID of the serverpackageNevraList
- array of dictionaries with package nevraearliestOccurrence
- Earliest occurrence of the package removalallowModules
- Allow this API call, despite modular content being presentpublic java.util.Set<Note> listNotes(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- the system idpublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listPackagesFromChannel(User loggedInUser, java.lang.Integer sid, java.lang.String channelLabel)
loggedInUser
- The current usersid
- the system IdchannelLabel
- the channel labelpublic java.lang.Long scheduleHardwareRefresh(User loggedInUser, java.lang.Integer sid, java.util.Date earliestOccurrence)
loggedInUser
- The current usersid
- ID of the server.earliestOccurrence
- Earliest occurrence of the hardware refresh.public int schedulePackageRefresh(User loggedInUser, java.lang.Integer sid, java.util.Date earliestOccurrence)
loggedInUser
- The current usersid
- ID of the server.earliestOccurrence
- Earliest occurrence of the refresh.public java.lang.Integer scheduleScriptRun(User loggedInUser, java.lang.String label, java.util.List<java.lang.Integer> systemIds, java.lang.String username, java.lang.String groupname, java.lang.Integer timeout, java.lang.String script, java.util.Date earliest)
loggedInUser
- The current userlabel
- Text descriptionsystemIds
- IDs of the servers to run the script on.username
- User to run script as.groupname
- Group to run script as.timeout
- Seconds to allow the script to run before timing out.script
- Contents of the script to run.earliest
- Earliest the script can run.public java.lang.Integer scheduleScriptRun(User loggedInUser, java.util.List<java.lang.Integer> systemIds, java.lang.String username, java.lang.String groupname, java.lang.Integer timeout, java.lang.String script, java.util.Date earliest)
loggedInUser
- The current usersystemIds
- IDs of the servers to run the script on.username
- User to run script as.groupname
- Group to run script as.timeout
- Seconds to allow the script to run before timing out.script
- Contents of the script to run.earliest
- Earliest the script can run.public java.lang.Integer scheduleScriptRun(User loggedInUser, java.lang.Integer sid, java.lang.String username, java.lang.String groupname, java.lang.Integer timeout, java.lang.String script, java.util.Date earliest)
loggedInUser
- The current usersid
- ID of the server to run the script on.username
- User to run script as.groupname
- Group to run script as.timeout
- Seconds to allow the script to run before timing out.script
- Contents of the script to run.earliest
- Earliest the script can run.public java.lang.Integer scheduleScriptRun(User loggedInUser, java.lang.String label, java.lang.Integer sid, java.lang.String username, java.lang.String groupname, java.lang.Integer timeout, java.lang.String script, java.util.Date earliest)
loggedInUser
- The current userlabel
- Text descriptionsid
- ID of the server to run the script on.username
- User to run script as.groupname
- Group to run script as.timeout
- Seconds to allow the script to run before timing out.script
- Contents of the script to run.earliest
- Earliest the script can run.public java.lang.Object[] getScriptResults(User loggedInUser, java.lang.Integer actionId)
loggedInUser
- The current useractionId
- ID of the script run action.public java.util.Map<java.lang.String,java.lang.Object> getScriptActionDetails(User loggedInUser, java.lang.Integer actionId)
loggedInUser
- The current useractionId
- action identifierpublic java.lang.Long scheduleReboot(User loggedInUser, java.lang.Integer sid, java.util.Date earliestOccurrence)
loggedInUser
- The current usersid
- ID of the server.earliestOccurrence
- Earliest occurrence of the reboot.public java.lang.Object getDetails(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- The current userserverId
- ID of server to lookup details for.public java.lang.Integer setDetails(User loggedInUser, java.lang.Integer serverId, java.util.Map<java.lang.String,java.lang.Object> details)
loggedInUser
- The current userserverId
- ID of server to lookup details for.details
- Map of (optional) system details to be set.public java.lang.Integer setLockStatus(User loggedInUser, java.lang.Integer serverId, boolean lockStatus)
loggedInUser
- The current userserverId
- ID of server to lookup details for.lockStatus
- to set. True to lock the system, False to unlock the system.public int addEntitlements(User loggedInUser, java.lang.Integer serverId, java.util.List<java.lang.String> entitlements)
loggedInUser
- The current userserverId
- ID of server.entitlements
- List of addon entitlement labels to add.public int removeEntitlements(User loggedInUser, java.lang.Integer serverId, java.util.List<java.lang.String> entitlements)
loggedInUser
- The current userserverId
- ID of server.entitlements
- List of addon entitlement labels to remove.public int unentitle(java.lang.String clientCert)
clientCert
- client system id filepublic java.util.Map transitionDataForSystem(java.lang.String clientCert) throws java.io.FileNotFoundException, NoSuchSystemException
clientCert
- client certificatejava.io.FileNotFoundException
- in case no transition data are availableNoSuchSystemException
- in case no transition data for the specific system
were foundpublic java.lang.Object[] listPackageProfiles(User loggedInUser)
loggedInUser
- The current userpublic int deletePackageProfile(User loggedInUser, java.lang.Integer profileId)
loggedInUser
- The current userprofileId
- The package profile ID to delete.public int createPackageProfile(User loggedInUser, java.lang.Integer sid, java.lang.String profileLabel, java.lang.String desc)
loggedInUser
- The current usersid
- ID of server to lookup details for.profileLabel
- the label of the profile to be createddesc
- the description of the profile to be createdpublic java.lang.Object[] comparePackageProfile(User loggedInUser, java.lang.Integer serverId, java.lang.String profileLabel)
loggedInUser
- The current userserverId
- ID of serverprofileLabel
- the label of the package profilepublic java.lang.Object[] listOutOfDateSystems(User loggedInUser)
loggedInUser
- The current userpublic java.lang.Long scheduleSyncPackagesWithSystem(User loggedInUser, java.lang.Integer targetServerId, java.lang.Integer sourceServerId, java.util.List<java.lang.Integer> packageIds, java.util.Date earliest)
loggedInUser
- The current usertargetServerId
- Target system to apply package changes to.sourceServerId
- Source system to retrieve package state from.packageIds
- List of package IDs to be synced.earliest
- Earliest occurrence of action.public java.util.List<SystemOverview> listUngroupedSystems(User loggedInUser)
loggedInUser
- The current userpublic java.lang.Object getSubscribedBaseChannel(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- SystemID of the system in questionpublic java.util.List<SystemOverview> listInactiveSystems(User loggedInUser)
loggedInUser
- The current userpublic java.util.List<SystemOverview> listInactiveSystems(User loggedInUser, java.lang.Integer days)
loggedInUser
- The current userdays
- the number of days for inactivity you wantpublic User whoRegistered(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- the id of the system in questionpublic java.util.List<SystemOverview> listSystemsWithPackage(User loggedInUser, java.lang.Integer pid)
loggedInUser
- The current userpid
- the package id to search forpublic java.util.List<SystemOverview> listSystemsWithPackage(User loggedInUser, java.lang.String name, java.lang.String version, java.lang.String release)
loggedInUser
- The current username
- package nameversion
- package versionrelease
- package releasepublic java.lang.Object[] listPhysicalSystems(User loggedInUser) throws FaultException
loggedInUser
- The current userFaultException
- A FaultException is thrown if a valid user can not be found
from the passed in session keypublic java.util.List<SystemOverview> listVirtualHosts(User loggedInUser)
loggedInUser
- The current userpublic java.util.List<VirtualSystemOverview> listVirtualGuests(User loggedInUser, java.lang.Integer sid)
loggedInUser
- The current usersid
- the host system idpublic int setGuestMemory(User loggedInUser, java.lang.Integer sid, java.lang.Integer memory)
loggedInUser
- The current usersid
- the server ID of the guestmemory
- the amount of memory to set the guest to usepublic int setGuestCpus(User loggedInUser, java.lang.Integer sid, java.lang.Integer numOfCpus)
loggedInUser
- The current usersid
- the server ID of the guestnumOfCpus
- the num of cpus to setpublic int scheduleGuestAction(User loggedInUser, java.lang.Integer sid, java.lang.String state, java.util.Date date)
loggedInUser
- The current usersid
- the id of the systemstate
- one of the following: 'start', 'suspend', 'resume', 'restart',
'shutdown'date
- the date to schedule itpublic int scheduleGuestAction(User loggedInUser, java.lang.Integer sid, java.lang.String state)
loggedInUser
- The current usersid
- the id of the systemstate
- one of the following: 'start', 'suspend', 'resume', 'restart',
'shutdown'public java.util.List<java.lang.String> listActivationKeys(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- The current userserverId
- the host system idpublic java.lang.Object[] getConnectionPath(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the system in questionFaultException
- A FaultException is thrown if the server corresponding to
sid cannot be found.public int setupStaticNetwork(java.lang.String clientcert, java.util.Map<java.lang.String,java.lang.Object> data)
clientcert
- the client certificate or the system id filedata
- a map holding the network details like ip, gateway,
name servers, ip, netmask and hostname.public int setupStaticNetwork(java.lang.String clientcert, java.util.Map<java.lang.String,java.lang.Object> data, java.util.Map<java.lang.String,java.lang.Object> data6)
clientcert
- the client certificate or the system id filedata
- a map holding the IPv4 network details like ip, gateway,
name servers, ip, netmask and hostname.data6
- a map holding the IPv6 network details like ip, netmask, gateway
and device.public int createSystemRecord(User loggedInUser, java.lang.Integer serverId, java.lang.String ksLabel)
loggedInUser
- The current userserverId
- the host system idksLabel
- identifies the kickstart profilepublic java.util.Map<java.lang.String,java.lang.Object> getVariables(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- The current userserverId
- identifies the serverpublic int setVariables(User loggedInUser, java.lang.Integer serverId, java.lang.Boolean netboot, java.util.Map<java.lang.String,java.lang.Object> variables)
loggedInUser
- The current userserverId
- identifies the servernetboot
- netboot enabledvariables
- list of system kickstart variables to setpublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listDuplicatesByIp(User loggedInUser)
loggedInUser
- The current userpublic java.util.List listDuplicatesByMac(User loggedInUser)
loggedInUser
- The current userpublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listDuplicatesByHostname(User loggedInUser)
loggedInUser
- The current userpublic java.util.Map<java.lang.String,java.lang.Integer> getSystemCurrencyMultipliers(User loggedInUser)
loggedInUser
- The current userpublic java.util.List<java.util.Map<java.lang.String,java.lang.Long>> getSystemCurrencyScores(User loggedInUser)
loggedInUser
- The current userpublic java.lang.String getUuid(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- The current userserverId
- of the serverpublic int tagLatestSnapshot(User loggedInUser, java.lang.Integer serverId, java.lang.String tagName)
loggedInUser
- The current userserverId
- server idtagName
- tagpublic int deleteTagFromSnapshot(User loggedInUser, java.lang.Integer serverId, java.lang.String tagName)
loggedInUser
- The current userserverId
- server idtagName
- tagpublic java.lang.Object[] listSystemsWithExtraPackages(User loggedInUser)
loggedInUser
- The current userpublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listExtraPackages(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- The current userserverId
- Server IDpublic int setPrimaryInterface(User loggedInUser, java.lang.Integer serverId, java.lang.String interfaceName) throws java.lang.Exception
loggedInUser
- The current userserverId
- Server IDinterfaceName
- Interface namejava.lang.Exception
- If interface does not exist Exception is thrownpublic int scheduleCertificateUpdate(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- The current userserverId
- Server Idpublic int scheduleCertificateUpdate(User loggedInUser, java.lang.Integer serverId, java.util.Date date)
loggedInUser
- The current userserverId
- Server Iddate
- The date of earliest occurencepublic int sendOsaPing(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- the session keyserverId
- server idpublic java.util.Map<java.lang.String,java.lang.Object> getOsaPing(User loggedInUser, java.lang.Integer serverId)
loggedInUser
- the session keyserverId
- server idpublic java.lang.Object[] listSuggestedReboot(User loggedInUser)
loggedInUser
- the session key