-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat Satellite
API Overview
A reference guide to the Red Hat Satellite API
Edition 1
Abstract
Preface
1. About This Guide
2. Audience
Part I. Introduction
Chapter 1. Introduction to the Red Hat Satellite API
- Maintain complete control and privacy over package management and server maintenance within their own networks;
- Store System Profiles on a Satellite server, which connect to the Red Hat Network website via a local web server; and,
- Perform package management tasks, including errata updates, through the local area network.
Chapter 2. Using XML-RPC with the Red Hat Satellite API
- Namespace
- A namespace is a grouping of methods based upon a particular function, object or resource. For example, the
auth
namespace groups authentication function, or theerrata
namespace groups function that control errata. - Method
- A method represents a certain action. Each method controls a specific function of the Red Hat Satellite. For example, the
login
method in theauth
namespace logs a user into Red Hat Satellite and returns a session key. - Parameter
- A parameter is a piece of input to control specific aspects of a method. For example, the
login
method in theauth
namespace requiresusername
andpassword
parameters to specify the login details of a certain user. Thelogin
method also accepts an optionalduration
parameter to specify the length of time until the user session expires..
<methodCall> <methodName>namespace.method</methodName> <params> <param> <value><name>parameter</name></value> </param> <param> <value><name>parameter</name></value> </param> ... </params> </methodCall>
<methodCall> <methodName>auth.login</methodName> <params> <param> <value><username>admin</username></value> </param> <param> <value><password>p@55w0rd!</password></value> </param> </params> </methodCall>
username
and password
as a parameters to the login
method, which is a part of the auth
namespace. The Satellite server returns the following response:
<methodResponse> <params> <param> <value><sessionKey>83d8b35f</sessionKey></value> </param> </params> </methodResponse>
sessionKey
, which is a key used to authenticate most of the API methods.
Part II. Examples
Chapter 3. Examples
3.1. Perl Example
system.listUserSystems
call being used to get a list of systems a user has access. The example prints the name of each system. The Frontier::Client
Perl module is found in the perl-Frontier-RPC
RPM.
#!/usr/bin/perl use Frontier::Client; my $HOST = 'satellite.example.com'; my $user = 'username'; my $pass = 'password'; my $client = new Frontier::Client(url => "http://$HOST/rpc/api"); my $session = $client->call('auth.login',$user, $pass); my $systems = $client->call('system.listUserSystems', $session); foreach my $system (@$systems) { print $system->{'name'}."\n"; } $client->call('auth.logout', $session);
3.2. Python Example
user.listUsers
call. The example prints the name of each group.
#!/usr/bin/python import xmlrpclib SATELLITE_URL = "http://satellite.example.com/rpc/api" SATELLITE_LOGIN = "username" SATELLITE_PASSWORD = "password" client = xmlrpclib.Server(SATELLITE_URL, verbose=0) key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD) list = client.user.list_users(key) for user in list: print user.get('login') client.auth.logout(key)
rhnlib-2.5.22.9.el6.noarch
to system with id 1000000001
.
#!/usr/bin/python from datetime import datetime import time import xmlrpclib SATELLITE_URL = "http://satellite.example.com/rpc/api" SATELLITE_LOGIN = "username" SATELLITE_PASSWORD = "password" client = xmlrpclib.Server(SATELLITE_URL, verbose=0) key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD) package_list = client.packages.findByNvrea(key, 'rhnlib', '2.5.22', '9.el6', '', 'noarch') today = datetime.today() earliest_occurrence = xmlrpclib.DateTime(today) client.system.schedulePackageInstall(key, 1000000001, package_list[0]['id'], earliest_occurrence) client.auth.logout(key)
3.3. Ruby example
channel.listAllChannels
API call. The example prints a list of channel labels.
#!/usr/bin/env ruby require "xmlrpc/client" @SATELLITE_URL = "http://satellite.example.com/rpc/api" @SATELLITE_LOGIN = "username" @SATELLITE_PASSWORD = "password" @client = XMLRPC::Client.new2(@SATELLITE_URL) @key = @client.call('auth.login', @SATELLITE_LOGIN, @SATELLITE_PASSWORD) channels = @client.call('channel.listAllChannels', @key) for channel in channels do p channel["label"] end @client.call('auth.logout', @key)
Part III. Reference
Chapter 4. Namespace: activationkey
activationkey
4.1. Method: addChildChannels
Add child channels to an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- string -
childChannelLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.2. Method: addConfigChannels
When given a list of activation keys and configuration channels, this method adds given configuration channels to either the top or the bottom (whichever you specify) of an activation key's configuration channels list. The ordering of the configuration channels provided in the add list remains maintained while adding. If one of the configuration channels in the 'add' list already exists in an activation key, the configuration channel's ranking moves to the appropriate place.
The following parameters are available for this method:
- string
sessionKey
- array:
- string -
activationKey
- array:
- string -
List
of configuration channel labels in the ranked order.
- boolean
addToTop
true
- To prepend the given channels to the beginning of the activation key's config channel listfalse
- To append the given channels to the end of the activation key's config channel list
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.3. Method: addEntitlements
Add entitlements to an activation key. Currently only add-on entitlements are permitted e.g. monitoring_entitled
, provisioning_entitled
, virtualization_host
, virtualization_host_platform
.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- string -
entitlement
labelmonitoring_entitled
provisioning_entitled
virtualization_host
virtualization_host_platform
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.4. Method: addPackageNames
Add packages to an activation key using package name only.
Note
addPackages (string sessionKey, string key, array[packages])
method.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- string -
packageName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.5. Method: addPackages
Add packages to an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- struct - packages
- string
name
- Package name - string
arch
- Architecture label (Optional)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.6. Method: addServerGroups
Add server groups to an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- int -
serverGroupId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.7. Method: checkConfigDeployment
Check configuration file deployment status for the activation key specified.
The following parameters are available for this method:
- string
sessionKey
- string
key
The following return values are available for this method:
1
if enabled,0
if disabled, exception thrown otherwise.
4.8. Method: create
Create a new activation key. The passed activation key parameter is prefixed with the organization ID. This value is returned from the create
call. For example, if the caller passes in the key foo
and adds to an organization with the ID 100
, the actual activation key will be 100-foo
. This allows setting a usage limit on this activation key. If unlimited usage is desired, use a create
method that does not include this parameter.
The following parameters are available for this method:
- string
sessionKey
- string
key
- Leave empty to have new key generated. - string
description
- string
baseChannelLabel
- Leave empty to accept default. - int
usageLimit
- If unlimited usage is desired, use acreate
method that does not include this parameter. - array:
- string -
Add-on
entitlement label to associate with the key.- monitoring_entitled
- provisioning_entitled
- virtualization_host
- virtualization_host_platform
- boolean
universalDefault
The following return values are available for this method:
- string -
The
new activation key.
4.9. Method: delete
Delete an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.10. Method: disableConfigDeployment
Disable configuration file deployment for the specified activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.11. Method: enableConfigDeployment
Enable configuration file deployment for the specified activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.12. Method: getDetails
View an activation key's details.
The following parameters are available for this method:
- string
sessionKey
- string
key
The following return values are available for this method:
- struct - activation key
- string
key
- string
description
- int
usage_limit
- string
base_channel_label
- array
child_channel_labels
- string
childChannelLabel
- array
entitlements
- string
entitlementLabel
- array
server_group_ids
- string
serverGroupId
- array
package_names
- string
packageName
- deprecated bypackages
- array
packages
- struct - package
- string
name
- package name - string
arch
- architecture label (optional0
- boolean
universal_default
- boolean
disabled
4.13. Method: listActivatedSystems
List the systems activated with the key provided.
The following parameters are available for this method:
- string
sessionKey
- string
key
The following return values are available for this method:
- array:
- struct - system structure
- int
id
- System id - string
hostname
- dateTime.iso8601
last_checkin
- Last time server successfully checked in
4.14. Method: listActivationKeys
List activation keys that are visible to the user.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - activation key
- string
key
- string
description
- int
usage_limit
- string
base_channel_label
- array
child_channel_labels
- string
childChannelLabel
- array
entitlements
- string
entitlementLabel
- array
server_group_ids
- string
serverGroupId
- array
package_names
- string
packageName
- deprecated bypackages
- array
packages
- struct - package
- string
name
- package name - string
arch
- architecture label (optional)
- boolean
universal_default
- boolean
disabled
4.15. Method: listConfigChannels
List configuration channels associated to an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
The following return values are available for this method:
- array:
- struct - Configuration Channel information
- int
id
- int
orgId
- string
label
- string
name
- string
description
- struct
configChannelType
- struct - Configuration Channel Type information
- int
id
- string
label
- string
name
- int
priority
4.16. Method: removeChildChannels
Remove child channels from an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- string -
childChannelLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.17. Method: removeConfigChannels
Remove configuration channels from the given activation keys.
The following parameters are available for this method:
- string
sessionKey
- array:
- string -
activationKey
- array:
- string -
configChannelLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.18. Method: removeEntitlements
Remove entitlements (by label) from an activation key. Currently only add-on entitlements are permitte e.g. monitoring_entitled
, provisioning_entitled
, virtualization_host
, virtualization_host_platform
.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- string -
entitlement
labelmonitoring_entitled
provisioning_entitled
virtualization_host
virtualization_host_platform
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.19. Method: removePackageNames
Remove package names from an activation key.
Note
removePackages(string sessionKey, string key, array[packages])
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- string -
packageName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.20. Method: removePackages
Remove package names from an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- struct - packages
- string
name
- Package name - string
arch
- Architecture label (optional)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.21. Method: removeServerGroups
Remove server groups from an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
- array:
- int -
serverGroupId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.22. Method: setConfigChannels
Replace the existing set of configuration channels on the given activation keys. Channels are ranked by their order in the array.
The following parameters are available for this method:
- string
sessionKey
- array:
- string -
activationKey
- array:
- string -
configChannelLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
4.23. Method: setDetails
Update the details of an activation key.
The following parameters are available for this method:
- string
sessionKey
- string
key
- struct - activation key
- string
description
(optional) - string
base_channel_label
(optional) - int
usage_limit
(optional) - boolean
unlimited_usage_limit
- Settrue
for unlimited usage and to overrideusage_limit
- boolean
universal_default
(optional) - boolean
disabled
(optional)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
Chapter 5. Namespace: api
api
5.1. Method: getApiCallList
Lists all available API calls grouped by namespace.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- struct - method_info
- string
name
- method name - string
parameters
- method parameters - string
exceptions
- method exceptions - string
return
- method return type
5.2. Method: getApiNamespaceCallList
Lists all available API calls for the specified namespace.
The following parameters are available for this method:
- string
sessionKey
- string
namespace
The following return values are available for this method:
- struct - method_info
- string
name
- method name - string
parameters
- method parameters - string
exceptions
- method exceptions - string
return
- method return type
5.3. Method: getApiNamespaces
Lists available API namespaces.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- struct - namespace
- string
namespace
- API namespace - string
handler
- API Handler
5.4. Method: getVersion
Returns the version of the API. Since Satellite 5.3 it is no longer related to server version.
The following return values are available for this method:
- string - the API version
5.5. Method: systemVersion
Returns the server version.
The following return values are available for this method:
- string - the server version
Chapter 6. Namespace: auth
auth
6.1. Method: login
Log in with a username and password. Returns the session key most other API methods use.
The following parameters are available for this method:
- string
username
- string
password
- int
duration
- length of session (optional)
The following return values are available for this method:
- string
sessionKey
6.2. Method: logout
Logout the user with the given session key.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
Chapter 7. Namespace: channel
channel
7.1. Method: listAllChannels
List all software channels the user's organization is entitled.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel info
- int
id
- string
label
- string
name
- string
provider_name
- int
packages
- int
systems
- string
arch_name
7.2. Method: listMyChannels
List all software channels that belong to the user's organization.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel info
- int
id
- string
label
- string
name
- string
provider_name
- int
packages
- int
systems
- string
arch_name
7.3. Method: listPopularChannels
List the most popular software channels. This returns the channels with the number of systems subscribed as specified by the popularity count.
The following parameters are available for this method:
- string
sessionKey
- int
popularityCount
The following return values are available for this method:
- array:
- struct - channel info
- int
id
- string
label
- string
name
- string
provider_name
- int
packages
- int
systems
- string
arch_name
7.4. Method: listRedHatChannels
List all Red Hat software channels the user's organization is entitled.
Note
listVendorChannels(String sessionKey)
method.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel info
- int
id
- string
label
- string
name
- string
provider_name
- int
packages
- int
systems
- string
arch_name
7.5. Method: listRetiredChannels
List all retired software channels. These are channels the user's organization is entitled but are no longer supported because they have reached their end-of-life date.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel info
- int
id
- string
label
- string
name
- string
provider_name
- int
packages
- int
systems
- string
arch_name
7.6. Method: listSharedChannels
List all software channels the user's organization may share.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel info
- int
id
- string
label
- string
name
- string
provider_name
- int
packages
- int
systems
- string
arch_name
7.7. Method: listSoftwareChannels
List all visible software channels.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel
- string
label
- string
name
- string
parent_label
- string
end_of_life
- string
arch
7.8. Method: listVendorChannels
Lists all the vendor software channels the user's organization is entitled.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel info
- int
id
- string
label
- string
name
- string
provider_name
- int
packages
- int
systems
- string
arch_name
Chapter 8. Namespace: channel.access
channel.access
8.1. Method: disableUserRestrictions
Disable user restrictions for the given channel. If disabled, all users within the organization may subscribe to the channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
8.2. Method: enableUserRestrictions
Enable user restrictions for the given channel. If enabled, only selected users within the organization may subscribe to the channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
8.3. Method: getOrgSharing
Get organization sharing access control.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel
The following return values are available for this method:
- string - The access value (one of the following:
public
,private
, orprotected
.
8.4. Method: setOrgSharing
Set organization sharing access control.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel - string
access
- Access one of the following:public
,private
, orprotected
.
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
Chapter 9. Namespace: channel.org
channel.org
9.1. Method: disableAccess
Disable access to the channel for the given organization.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel - int
orgId
- ID of organization with disabled access
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
9.2. Method: enableAccess
Enable access to the channel for the given organization.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel - int
orgId
- ID of organization granted access
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
9.3. Method: list
List the organizations associated with the given channel that may be trusted.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel
The following return values are available for this method:
- array:
- struct - org
- int
org_id
- string
org_name
- boolean
access_enabled
Chapter 10. Namespace: channel.software
channel.software
10.1. Method: addPackages
Adds a given list of packages to the given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- target channel - array:
- int -
packageId
- ID of a package to add to the channel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.2. Method: addRepoFilter
Adds a filter for a given repo.
The following parameters are available for this method:
- string
sessionKey
- string
label
- repository label - struct - filter_map
- string
filter
- string to filter on - string
flag
- plus (+
) for include, minus (-
) for exclude
The following return values are available for this method:
- int
sort
- order for new filter
10.3. Method: associateRepo
Associates a repository with a channel
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel label - string
repoLabel
- repository label
The following return values are available for this method:
- struct - channel
- int
id
- string
name
- string
label
- string
arch_name
- string
summary
- string
description
- string
checksum_label
- dateTime.iso8601
last_modified
- string
maintainer_name
- string
maintainer_email
- string
maintainer_phone
- string
support_policy
- string
gpg_key_url
- string
gpg_key_id
- string
gpg_key_fp
- dateTime.iso8601
yumrepo_last_sync
(optional) - string
end_of_life
- string
parent_channel_label
- string
clone_original
- array:
- struct - contentSources
- int
id
- string
label
- string
sourceUrl
- string
type
10.4. Method: availableEntitlements
Returns the number of available subscriptions for the given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query
The following return values are available for this method:
- int
number
of available subscriptions for the given channel
10.5. Method: clearRepoFilters
Removes the filters for a repo.
The following parameters are available for this method:
- string
sessionKey
- string
label
- repository label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.6. Method: clone
Clone a channel. If arch_label
is omitted, the architecture label of the original channel is used. If parent_label
is omitted, the clone becomes a base channel.
The following parameters are available for this method:
- string
sessionKey
- string
original_label
- struct - channel details
- string
name
- string
label
- string
summary
- string
parent_label
(optional) - string
arch_label
(optional) - string
gpg_key_url
(optional) -gpg_url
can be used too - string
gpg_key_id
- (optional),gpg_id
can be used too - string
gpg_key_fp
- (optional),gpg_fingerprint
can be used too - string
description
- (optional)
- boolean
original_state
The following return values are available for this method:
- int - the cloned channel ID
10.7. Method: create
Creates a software channel.
The following parameters are available for this method:
- string
sessionKey
- string
label
- label of the new channel - string
name
- name of the new channel - string
summary
- summary of the channel - string
archLabel
- the label of the architecture for the channel.channel-ia32
- For 32 bit channel architecturechannel-ia64
- For 64 bit channel architecturechannel-sparc
- For Sparc channel architecturechannel-alpha
- For Alpha channel architecturechannel-s390
- For s390 channel architecturechannel-s390x
- For s390x channel architecturechannel-iSeries
- For i-Series channel architecturechannel-pSeries
- For p-Series channel architecturechannel-x86_64
- For x86_64 channel architecturechannel-ppc
- For PPC channel architecturechannel-sparc-sun-solaris
- For Sparc Solaris channel architecturechannel-i386-sun-solaris
- For i386 Solaris channel architecture
- string
parentLabel
- label of the parent of this channel or an empty string if it does not have one - string
checksumType
- checksum type for this channel, used for yum repository metadata generationsha1
- Offers widest compatibility with clientssha256
- Offers highest security, but is compatible only with newer clients e.g. Red Hat Enterprise Linux 6 and newer.
- struct - gpgKey
- string
url
- GPG key URL - string
id
- GPG key ID - string
fingerprint
- GPG key Fingerprint
The following return values are available for this method:
- int -
1
if the creation operation succeeded, 0 otherwise
10.8. Method: create
Creates a software channel.
The following parameters are available for this method:
- string
sessionKey
- string
label
- label of the new channel - string
name
- name of the new channel - string
summary
- summary of the channel - string
archLabel
- the label of the architecture for the channel.channel-ia32
- For 32 bit channel architecturechannel-ia64
- For 64 bit channel architecturechannel-sparc
- For Sparc channel architecturechannel-alpha
- For Alpha channel architecturechannel-s390
- For s390 channel architecturechannel-s390x
- For s390x channel architecturechannel-iSeries
- For i-Series channel architecturechannel-pSeries
- For p-Series channel architecturechannel-x86_64
- For x86_64 channel architecturechannel-ppc
- For PPC channel architecturechannel-sparc-sun-solaris
- For Sparc Solaris channel architecturechannel-i386-sun-solaris
- For i386 Solaris channel architecture
- string
parentLabel
- label of the parent of this channel or an empty string if it does not have one - string
checksumType
- checksum type for this channel, used for yum repository metadata generationsha1
- Offers widest compatibility with clientssha256
- Offers highest security, but is compatible only with newer clients e.g. Red Hat Enterprise Linux 6 and newer.
The following return values are available for this method:
- int -
1
if the creation operation succeeded, 0 otherwise
10.9. Method: create
Creates a software channel
The following parameters are available for this method:
- string
sessionKey
- string
label
- label of the new channel - string
name
- name of the new channel - string
summary
- summary of the channel - string
archLabel
- the label of the architecture for the channel.channel-ia32
- For 32 bit channel architecturechannel-ia64
- For 64 bit channel architecturechannel-sparc
- For Sparc channel architecturechannel-alpha
- For Alpha channel architecturechannel-s390
- For s390 channel architecturechannel-s390x
- For s390x channel architecturechannel-iSeries
- For i-Series channel architecturechannel-pSeries
- For p-Series channel architecturechannel-x86_64
- For x86_64 channel architecturechannel-ppc
- For PPC channel architecturechannel-sparc-sun-solaris
- For Sparc Solaris channel architecturechannel-i386-sun-solaris
- For i386 Solaris channel architecture
- string
parentLabel
- label of the parent of this channel or an empty string if it does not have one
The following return values are available for this method:
- int -
1
if the creation operation succeeded, 0 otherwise
10.10. Method: createRepo
Creates a repository
The following parameters are available for this method:
- string
sessionKey
- string
label
- repository label - string
type
- repository type (only YUM is supported) - string
url
- repository url
The following return values are available for this method:
- struct - channel
- int
id
- string
label
- string
sourceUrl
- string
type
10.11. Method: delete
Deletes a custom software channel
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.12. Method: disassociateRepo
Disassociates a repository from a channel
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel label - string
repoLabel
- repository label
The following return values are available for this method:
- struct - channel
- int
id
- string
name
- string
label
- string
arch_name
- string
summary
- string
description
- string
checksum_label
- dateTime.iso8601
last_modified
- string
maintainer_name
- string
maintainer_email
- string
maintainer_phone
- string
support_policy
- string
gpg_key_url
- string
gpg_key_id
- string
gpg_key_fp
- dateTime.iso8601
yumrepo_last_sync
(optional) - string
end_of_life
- string
parent_channel_label
- string
clone_original
- array:
- struct - contentSources
- int
id
- string
label
- string
sourceUrl
- string
type
10.13. Method: getChannelLastBuildById
Returns the last build date of the repomd.xml
file for the given channel as a localised string.
The following parameters are available for this method:
- string
sessionKey
- int
id
- id of desired channel
The following return values are available for this method:
- the last build date of the
repomd.xml
file as a localised string
10.14. Method: getDetails
Returns details of the given channel as a map.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query
The following return values are available for this method:
- struct - channel
- int
id
- string
name
- string
label
- string
arch_name
- string
summary
- string
description
- string
checksum_label
- dateTime.iso8601
last_modified
- string
maintainer_name
- string
maintainer_email
- string
maintainer_phone
- string
support_policy
- string
gpg_key_url
- string
gpg_key_id
- string
gpg_key_fp
- dateTime.iso8601
yumrepo_last_sync
(optional) - string
end_of_life
- string
parent_channel_label
- string
clone_original
- array:
- struct - contentSources
- int
id
- string
label
- string
sourceUrl
- string
type
10.15. Method: getDetails
Returns details of the given channel as a map.
The following parameters are available for this method:
- string
sessionKey
- int
id
- channel to query
The following return values are available for this method:
- struct - channel
- int
id
- string
name
- string
label
- string
arch_name
- string
summary
- string
description
- string
checksum_label
- dateTime.iso8601
last_modified
- string
maintainer_name
- string
maintainer_email
- string
maintainer_phone
- string
support_policy
- string
gpg_key_url
- string
gpg_key_id
- string
gpg_key_fp
- dateTime.iso8601
yumrepo_last_sync
(optional) - string
end_of_life
- string
parent_channel_label
- string
clone_original
- array:
- struct - contentSources
- int
id
- string
label
- string
sourceUrl
- string
type
10.16. Method: getRepoDetails
Returns details of the given repository.
The following parameters are available for this method:
- string
sessionKey
- string
repoLabel
- repository to query
The following return values are available for this method:
- struct - channel
- int
id
- string
label
- string
sourceUrl
- string
type
10.17. Method: getRepoDetails
Returns details of the given repo
The following parameters are available for this method:
- string
sessionKey
- string
repoLabel
- repo to query
The following return values are available for this method:
- struct - channel
- int
id
- string
label
- string
sourceUrl
- string
type
10.18. Method: getRepoSyncCronExpression
Returns repository synchronization cron expression.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel label
The following return values are available for this method:
- string
quartz
expression
10.19. Method: isGloballySubscribable
Returns whether any user in the organization may subscribe to the channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query
The following return values are available for this method:
- int -
1
if true, 0 otherwise
10.20. Method: isUserManageable
Returns whether the given user may manage the channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel - string
login
- login of the target user
The following return values are available for this method:
- int -
1
if manageable, 0 if not
10.21. Method: isUserSubscribable
Returns whether any user may subscribe to the channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of the channel - string
login
- login of the target user
The following return values are available for this method:
- int -
1
if subscribable, 0 if not
10.22. Method: listAllPackages
Lists all packages in the channel, regardless of package version, between given dates.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query - dateTime.iso8601
startDate
- dateTime.iso8601
endDate
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- string
checksum
- string
checksum_type
- int
id
- string
arch_label
- string
last_modified_date
- string
last_modified
(deprecated)
10.23. Method: listAllPackages
Lists all packages in the channel, regardless of version, where the last modified date is greater than the given date.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query - dateTime.iso8601
startDate
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- string
checksum
- string
checksum_type
- int
id
- string
arch_label
- string
last_modified_date
- string
last_modified
(deprecated)
10.24. Method: listAllPackages
Lists all packages in the channel, regardless of the package version.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- string
checksum
- string
checksum_type
- int
id
- string
arch_label
- string
last_modified_date
- string
last_modified
(deprecated)
10.25. Method: listAllPackages
Lists all packages in the channel, regardless of package version, between given dates. Example Date: '2008-08-20 08:00:00'
Note
listAllPackages(string sessionKey, string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601 endDate)
method.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query - string
startDate
- string
endDate
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- string
checksum
- string
checksum_type
- int
id
- string
arch_label
- string
last_modified_date
- string
last_modified
(deprecated)
10.26. Method: listAllPackages
Lists all packages in the channel, regardless of version, where the last modified date is greater than the given date. Example Date: '2008-08-20 08:00:00'
Note
listAllPackages(string sessionKey, string channelLabel, dateTime.iso8601 startDate)
method.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query - string
startDate
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- string
checksum
- string
checksum_type
- int
id
- string
arch_label
- string
last_modified_date
- string
last_modified
(deprecated)
10.27. Method: listAllPackagesByDate
Lists all packages in the channel, regardless of the package version, between the given dates. Example Date: '2008-08-20 08:00:00'
Note
listAllPackages(string sessionKey, string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601 endDate)
method.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query - string
startDate
- string
endDate
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- string
id
- string
arch_label
- string
last_modified
10.28. Method: listAllPackagesByDate
Lists all packages in the channel, regardless of the package version, where the last modified date is greater than the given date. Example Date: '2008-08-20 08:00:00'
Note
listAllPackages(string sessionKey, string channelLabel, dateTime.iso8601 startDate)
method.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query - string
startDate
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- string
id
- string
arch_label
- string
last_modified
10.29. Method: listAllPackagesByDate
Lists all packages in the channel, regardless of the package version
Note
listAllPackages(string sessionKey, string channelLabel)
method.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- string
id
- string
arch_label
- string
last_modified
10.30. Method: listArches
Lists the potential software channel architectures for creation.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel arch
- string
name
- string
label
10.31. Method: listChannelRepos
Lists associated repositories with the given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel label
The following return values are available for this method:
- array:
- struct - channel
- int
id
- string
label
- string
sourceUrl
- string
type
10.32. Method: listChildren
List the children of a channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- the label of the channel
The following return values are available for this method:
- array:
- struct - channel
- int
id
- string
name
- string
label
- string
arch_name
- string
summary
- string
description
- string
checksum_label
- dateTime.iso8601
last_modified
- string
maintainer_name
- string
maintainer_email
- string
maintainer_phone
- string
support_policy
- string
gpg_key_url
- string
gpg_key_id
- string
gpg_key_fp
- dateTime.iso8601
yumrepo_last_sync
(optional) - string
end_of_life
- string
parent_channel_label
- string
clone_original
- array:
- struct - contentSources
- int
id
- string
label
- string
sourceUrl
- string
type
10.33. Method: listErrata
List the errata applicable to a channel after given start date.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query - dateTime.iso8601
startDate
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
update_date
- Erratum update date - string
advisory_synopsis
- Summary of the erratum. - string
advisory_type
- Type label, such as "Security", "Bug Fix", or "Enhancement" - string
advisory_name
- Name, such as RHSA
10.34. Method: listErrata
List the errata applicable to a channel between a start date and end date.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- channel to query - dateTime.iso8601
startDate
- dateTime.iso8601
endDate
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
update_date
- Erratum update date - string
advisory_synopsis
- Summary of the erratum. - string
advisory_type
- Type label, such as "Security", "Bug Fix", or "Enhancement" - string
advisory_name
- Name, such as RHSA
10.35. Method: listErrata
List the errata applicable to a channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel to query
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata Id - string
advisory_synopsis
- Summary of the erratum. - string
advisory_type
- Type label, such as "Security", "Bug Fix", or "Enhancement" - string
advisory_name
- Name, such as RHSA - string
advisory
- Name of the advisory (deprecated) - string
issue_date
- Date format, which follows YYYY-MM-DD HH24:MI:SS (deprecated) - string
update_date
- date format, which follows YYYY-MM-DD HH24:MI:SS (deprecated) - string
synopsis
(deprecated) - string
last_modified_date
- date format, which follows YYYY-MM-DD HH24:MI:SS (deprecated)
10.36. Method: listErrata
List the errata applicable to a channel after given startDate
Note
listErrata(string sessionKey, string channelLabel, dateTime.iso8601 startDate)
method.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel to query - string
startDate
The following return values are available for this method:
- array:
- struct - errata
- string
advisory
- Name of the advisory - string
issue_date
- Date format, which follows YYYY-MM-DD HH24:MI:SS - string
update_date
- date format, which follows YYYY-MM-DD HH24:MI:SS - string
synopsis
- string
advisory_type
- string
last_modified_date
- date format, which follows YYYY-MM-DD HH24:MI:SS
10.37. Method: listErrata
List the errata applicable to a channel between a start date and end date.
Note
listErrata(string sessionKey, string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601)
method.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel to query - string
startDate
- string
startDate
The following return values are available for this method:
- array:
- struct - errata
- string
advisory
- Name of the advisory - string
issue_date
- Date format, which follows YYYY-MM-DD HH24:MI:SS - string
update_date
- Date format, which follows YYYY-MM-DD HH24:MI:SS - string
synopsis
- string
advisory_type
- string
last_modified_date
- Date format, which follows YYYY-MM-DD HH24:MI:SS
10.38. Method: listErrataByType
List the errata of a specific type applicable to a channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel to query - string
advisoryType
- Type of advisory; one of of the following: "Security Advisory", "Product Enhancement Advisory", or "Bug Fix Advisory".
The following return values are available for this method:
- array:
- struct - errata
- string
advisory
- Name of the advisory - string
issue_date
- Date format, which follows YYYY-MM-DD HH24:MI:SS - string
update_date
- Date format, which follows YYYY-MM-DD HH24:MI:SS - string
synopsis
- string
advisory_type
- string
last_modified_date
- Date format, which follows YYYY-MM-DD HH24:MI:SS
10.39. Method: listLatestPackages
Lists the packages with the latest version, including release and epoch, for the given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel to query
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- int
id
- string
arch_label
10.40. Method: listPackagesWithoutChannel
Lists all packages not associated with a channel. Typically these are custom packages.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- int
id
- string
arch_label
- string
path
- The path on the file system the package resides - string
provider
- The provider of the package, determined by its GPG key - dateTime.iso8601
last_modified
10.41. Method: listRepoFilters
Lists the filters for a repo.
The following parameters are available for this method:
- string
sessionKey
- string
label
- Repository label
The following return values are available for this method:
- array:
- struct - filter
- int
sortOrder
- string
filter
- string
flag
10.42. Method: listSubscribedSystems
Returns list of subscribed systems for the given channel label.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel to query
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
10.43. Method: listSystemChannels
Returns a list of channels that a system is subscribed to for the given system ID.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - channel
- string
label
- string
name
10.44. Method: listUserRepos
Returns a list of ContentSource
(repositories) the user can see.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - map
- long
id
- ID of the repo - string
label
- Label of the repo - string
sourceUrl
- URL of the repo
10.45. Method: mergeErrata
Merges all errata from one channel into another.
The following parameters are available for this method:
- string
sessionKey
- string
mergeFromLabel
- The label of the channel to pull errata - string
mergeToLabel
- The label to push errata
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of the advisory - string
advisory_synopsis
- Summary of the erratum
10.46. Method: mergeErrata
Merges all errata from one channel into another based upon a given start and end date.
The following parameters are available for this method:
- string
sessionKey
- string
mergeFromLabel
- The label of the channel to pull errata - string
mergeToLabel
- The label to push the errata - string
startDate
- string
endDate
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata Id - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
10.47. Method: mergeErrata
Merges a list of errata from one channel into another.
The following parameters are available for this method:
- string
sessionKey
- string
mergeFromLabel
- The label of the channel to pull errata - string
mergeToLabel
- The label to push errata - array:
- string -
advisory
- The advisory name of the errata to merge
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
10.48. Method: mergePackages
Merges all packages from one channel into another.
The following parameters are available for this method:
- string
sessionKey
- string
mergeFromLabel
- The label of the channel to pull packages - string
mergeToLabel
- The label to push the packages
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- int
id
- string
arch_label
- string
path
- The path on the file system the package resides - string
provider
- The provider of the package, determined by its GPG key - dateTime.iso8601
last_modified
10.49. Method: regenerateNeededCache
Completely clear and regenerate the needed errata and package cache for all systems subscribed to the specified channel. Only use this method if you believe your cache is incorrect for all systems in a given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- The label of the channel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.50. Method: regenerateNeededCache
Completely clear and regenerate the needed errata and package cache for all systems subscribed. Only a Satellite Administrator may perform this action.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.51. Method: regenerateYumCache
Regenerate YUM cache for the specified channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- The label of the channel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.52. Method: removeErrata
Removes a given list of errata from the given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Target channel - array:
- string -
advisoryName
- Name of an erratum to remove
- boolean
removePackages
- True to remove packages from the channel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.53. Method: removePackages
Removes a given list of packages from the given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Target channel. - array:
- int -
packageId
- ID of a package to remove from the channel.
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.54. Method: removeRepo
Removes a repository.
The following parameters are available for this method:
- string
sessionKey
- long
id
- ID of repository to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.55. Method: removeRepo
Removes a repository
The following parameters are available for this method:
- string
sessionKey
- string
label
- Label of repo to be removed
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.56. Method: removeRepoFilter
Removes a filter for a given repo.
The following parameters are available for this method:
- string
sessionKey
- string
label
- Repository label - struct - filter_map
- string
filter
- String to filter on - string
flag
- plus (+
) for include, minus (-
) for exclude
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.57. Method: setContactDetails
Set contact and support information for given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of the channel - string
maintainerName
- Name of the channel maintainer - string
maintainerEmail
- Email of the channel maintainer - string
maintainerPhone
- Phone number of the channel maintainer - string
supportPolicy
- Channel support policy
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.58. Method: setDetails
Allows to modify channel attributes
The following parameters are available for this method:
- string
sessionKey
- int
channelDd
- channel id - struct - channel_map
- string
checksum_label
- New channel repository checksum label (optional) - string
name
- New channel name (optional) - string
summary
- New channel summary (optional) - string
description
- New channel description (optional) - string
maintainer_name
- New channel maintainer name (optional) - string
maintainer_email
- New channel email address (optional) - string
maintainer_phone
- New channel phone number (optional) - string
gpg_key_url
- New channel GPG key URL (optional) - string
gpg_key_id
- New channel GPG key ID (optional) - string
gpg_key_fp
- New channel GPG key fingerprint (optional)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.59. Method: setGloballySubscribable
Set globally subscribable attribute for given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of the channel - boolean
subscribable
-true
if the channel is to be globally subscribable.false
otherwise.
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.60. Method: setRepoFilters
Replaces the existing set of filters for a given repository. Filters are ranked by their order in the array.
The following parameters are available for this method:
- string
sessionKey
- string
label
- Repository label - array:
- struct - filter_map
- string
filter
- String to filter on - string
flag
- Plus (+
) for include, minus (-
) for exclude
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.61. Method: setSystemChannels
Change a system's subscribed channels to the list of channels passed.
Note
system.setBaseChannel(string sessionKey, int serverId, string channelLabel)
and system.setChildChannels(string sessionKey, int serverId, array[string channelLabel])
methods now replace it.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- string -
channelLabel
- Labels of the channels to subscribe the system.
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.62. Method: setUserManageable
Set the manageable flag for a given channel and user. If value is set to true
, this method gives the user 'manage' permissions for the channel. Otherwise, the privilege is revoked.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of the channel - string
login
- Login of the target user - boolean
value
- Value of the flag to set
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.63. Method: setUserSubscribable
Set the subscribable flag for a given channel and user. If value is set to true
, this method gives the user 'subscribe' permissions to the channel. Otherwise, the privilege is revoked.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of the channel - string
login
- Login of the target user - boolean
value
- Value of the flag to set
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.64. Method: subscribeSystem
Subscribes a system to a list of channels. If a base channel is included, it is set before setting child channels. When setting child channels, the current child channel subscriptions are cleared. To fully unsubscribe the system from all channels, provide an empty list of channel labels.
Note
system.setBaseChannel(string sessionKey, int serverId, string channelLabel)
and system.setChildChannels(string sessionKey, int serverId, array[string channelLabel])
methods now replace it.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- string -
label
- Channel label to subscribe the system
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.65. Method: syncRepo
Trigger immediate repository synchronization.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.66. Method: syncRepo
Schedule periodic repository synchronization.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel label - string
cron
expression - If empty, all periodic schedules are disabled
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
10.67. Method: updateRepo
Updates a ContentSource
(repository).
The following parameters are available for this method:
- string
sessionKey
- int
id
- Repository ID - string
label
- New repository label - string
url
- New repository URL
The following return values are available for this method:
- struct - channel
- int
id
- string
label
- string
sourceUrl
- string
type
10.68. Method: updateRepoLabel
Updates the repository label.
The following parameters are available for this method:
- string
sessionKey
- int
id
- Repository ID - string
label
- New repository label
The following return values are available for this method:
- struct - channel
- int
id
- string
label
- string
sourceUrl
- string
type
10.69. Method: updateRepoUrl
Updates the repository source URL.
The following parameters are available for this method:
- string
sessionKey
- int
id
- Repository ID - string
url
- Repository URL
The following return values are available for this method:
- struct - channel
- int
id
- string
label
- string
sourceUrl
- string
type
10.70. Method: updateRepoUrl
Updates repository source URL
The following parameters are available for this method:
- string
sessionKey
- string
label
- Repository label - string
url
- Repository URL
The following return values are available for this method:
- struct - channel
- int
id
- string
label
- string
sourceUrl
- string
type
Chapter 11. Namespace: configchannel
configchannel
11.1. Method: channelExists
Check for the existence of the config channel provided.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel to check for
The following return values are available for this method:
1
if exists,0
otherwise.
11.2. Method: create
Create a new global config channel. Caller must be at least a config administrator or an organization administrator.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- string
channelName
- string
channelDescription
The following return values are available for this method:
- struct - Configuration Channel information
- int
id
- int
orgId
- string
label
- string
name
- string
description
- struct
configChannelType
- struct - Configuration Channel Type information
- int
id
- string
label
- string
name
- int
priority
11.3. Method: createOrUpdatePath
Create a new file or directory with the given path, or update an existing path.
The following parameters are available for this method:
- string
sessionKey
- string
configChannelLabel
- string
path
- boolean
isDir
-true
if the path is a directory,false
if it is a file. - struct - path info
- string
contents
- Contents of the file in text or base64 encoded if binary (only for non-directories) - boolean
contents_enc64
- Identifies base64 encoded content (disabled by default, only for non-directories) - string
owner
- Owner of the file or directory. - string
group
- Group name of the file or directory. - string
permissions
- Octal file or directory permissions e.g. 644 - string
selinux_ctx
- SELinux security context (optional) - string
macro-start-delimiter
- Config file macro start delimiter; use null or empty string to accept the default (only for non-directories) - string
macro-end-delimiter
- Config file macro end delimiter; use null or empty string to accept the default (only for non-directories) - int
revision
- Next revision number; auto increment for null - boolean
binary
- Mark the binary content; iftrue
, base64 encoded content is expected (only for non-directories)
The following return values are available for this method:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File Path - string
target_path
- Symbolic link Target File Path; present for Symbolic links only. - string
channel
- Channel Name - string
contents
- File contents (base64 encoded according to thecontents_enc64
attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File Revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File Owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File Permissions; present for files or directories only (deprecated) - string
permissions_mode
- File Permissions; Present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only. - string
md5
- File's MD5 signature; present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only. - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only.
11.4. Method: createOrUpdateSymlink
Create a new symbolic link with the given path, or update an existing path.
The following parameters are available for this method:
- string
sessionKey
- string
configChannelLabel
- string
path
- struct - path info
- string
target_path
- The target path for the symbolic link - string
selinux_ctx
- SELinux security context (optional) - int
revision
- Next revision number; skip this field for automatic revision number assignment
The following return values are available for this method:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File Path - string
target_path
- Symbolic link Target File Path; present for Symbolic links only - string
channel
- Channel Name - string
contents
- File contents; base64 encoded according to the contents_enc64 attribute - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File Revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File Owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File Permissions; present for files or directories only (deprecated) - string
permissions_mode
- File Permissions; present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only. - string
md5
- File's MD5 signature; present for files only. - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only. - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only.
11.5. Method: deleteChannels
Delete a list of global config channels. Caller must be a config admin.
The following parameters are available for this method:
- string
sessionKey
- array:
- string
configuration
- channel labels to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
11.6. Method: deleteFileRevisions
Delete specified revisions of a given configuration file.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of config channel to look up - string
filePath
- Configuration file path - array:
- int - List of revisions to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
11.7. Method: deleteFiles
Remove file paths from a global channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Channel to remove files - array:
- string
file
- Paths to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
11.8. Method: deployAllSystems
Schedule an immediate configuration deployment for all systems subscribed to a particular configuration channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- The configuration channel's label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
11.9. Method: deployAllSystems
Schedule a configuration deployment for all systems subscribed to a particular configuration channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- The configuration channel's label - dateTime.iso8601
date
- The date to schedule the action
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
11.10. Method: getDetails
Look up configuration channel details.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
The following return values are available for this method:
- struct - Configuration Channel information
- int
id
- int
orgId
- string
label
- string
name
- string
description
- struct
configChannelType
- struct - Configuration Channel Type information
- int
id
- string
label
- string
name
- int
priority
11.11. Method: getDetails
Look up configuration channel details.
The following parameters are available for this method:
- string
sessionKey
- int
channelId
The following return values are available for this method:
- struct - Configuration Channel information
- int
id
- int
orgId
- string
label
- string
name
- string
description
- struct
configChannelType
- struct - Configuration Channel Type information
- int
id
- string
label
- string
name
- int
priority
11.12. Method: getEncodedFileRevision
Get revision of the specified configuration file and transmit the contents as base64 encoded.
The following parameters are available for this method:
- string
sessionKey
- string
configChannelLabel
- Label of config channel to look up - string
filePath
- Config file path to examine - int
revision
- Config file revision to examine
The following return values are available for this method:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File Path - string
target_path
- Symbolic link Target File Path. Present for Symbolic links only. - string
channel
- Channel Name - string
contents
- File contents (base64 encoded according to thecontents_enc64
attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File Revision - dateTime.iso8601
creation
- Creation Date - dateTime.iso8601
modified
- Last Modified Date - string
owner
- File Owner. Present for files or directories only. - string
group
- File Group. Present for files or directories only. - int
permissions
- File Permissions (Deprecated). Present for files or directories only. - string
permissions_mode
- File Permissions. Present for files or directories only. - string
selinux_ctx
- SELinux Context (optional). - boolean
binary
-true
orfalse
; present for files only - string
md5
- File's md5 signature. Present for files only. - string
macro-start-delimiter
- Macro start delimiter for a config file. Present for text files only. - string
macro-end-delimiter
- Macro end delimiter for a config file. Present for text files only.
11.13. Method: getFileRevision
Get revision of the specified configuration file and transmit the contents as plain text.
The following parameters are available for this method:
- string
sessionKey
- string
configChannelLabel
- Label of config channel to look up - string
filePath
- Config file path to examine - int
revision
- Config file revision to examine
The following return values are available for this method:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File path - string
target_path
- Symbolic link Target File Path. Present for Symbolic links only. - string
channel
- Channel name - string
contents
- File contents (base64 encoded according to thecontents_enc64
attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File permissions; present for files or directories only. (deprecated) - string
permissions_mode
- File permissions; present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only - string
md5
- File's MD5 signature; present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only
11.14. Method: getFileRevisions
Get list of revisions for specified config file.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of config channel to look up - string
filePath
- Config file path to examine
The following return values are available for this method:
- array:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File path - string
target_path
- Symbolic link target file path; present for symbolic links only. - string
channel
- Channel name - string
contents
- File contents (base64 encoded according to the contents_enc64 attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File permissions; present for files or directories only (deprecated) - string
permissions_mode
- File permissions; present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only. - string
md5
- File's MD5 signature; present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only. - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only.
11.15. Method: listFiles
Return a list of files in a channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of config channel to list files on.
The following return values are available for this method:
- array:
- struct - Configuration File information
- string
type
- file
- directory
- symlink
- string
path
- File path - dateTime.iso8601
last_modified
- Last modified date
11.16. Method: listGlobals
List all the global config channels accessible to the logged-in user.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - Configuration Channel information
- int
id
- int
orgId
- string
label
- string
name
- string
description
- string
type
- struct
configChannelType
- struct - Configuration Channel Type information
- int
id
- string
label
- string
name
- int
priority
11.17. Method: listSubscribedSystems
Return a list of systems subscribed to a configuration channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- label of config channel to list subscribed systems.
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
11.18. Method: lookupChannelInfo
Lists details for channels given their labels.
The following parameters are available for this method:
- string
sessionKey
- array:
- string
configuration
- channel label
The following return values are available for this method:
- array:
- struct - Configuration Channel information
- int
id
- int
orgId
- string
label
- string
name
- string
description
- struct
configChannelType
- struct - Configuration Channel Type information
- int
id
- string
label
- string
name
- int
priority
11.19. Method: lookupFileInfo
Returns details about the latest path revisions from a list of paths and a channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of config channel to look up - array:
- string -
List
of paths to examine.
The following return values are available for this method:
- array:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File path - string
target_path
- Symbolic link target file path; present for symbolic links only. - string
channel
- Channel name - string
contents
- File contents (base64 encoded according to the contents_enc64 attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File permissions; present for files or directories only (deprecated) - string
permissions_mode
- File permissions; present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only. - string
md5
- File's MD5 signature; present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only. - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only.
11.20. Method: lookupFileInfo
Returns details about the latest path revisions given a path, revision number, and a channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of config channel to look up - string
path
- Path of the file or directory - int
revsion
- The revision number
The following return values are available for this method:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File path - string
target_path
- Symbolic link target file path; present for symbolic links only. - string
channel
- Channel name - string
contents
- File contents (base64 encoded according to the contents_enc64 attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File permissions; present for files or directories only (deprecated) - string
permissions_mode
- File permissions; present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only. - string
md5
- File's MD5 signature; present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only. - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only.
11.21. Method: scheduleFileComparisons
Schedule a comparison of the latest revision of a file against the version deployed on a list of systems.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of config channel - string
path
- File path - array:
- long - The list of server ID for the comparison performed on
The following return values are available for this method:
- int
actionId
- The action ID of the scheduled action
11.22. Method: update
Update a global config channel. Caller is at least a config administrator, an organization administrator, or have access to a system containing this config channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- string
channelName
- string
description
The following return values are available for this method:
- struct - Configuration Channel information
- int
id
- int
orgId
- string
label
- string
name
- string
description
- struct
configChannelType
- struct - Configuration Channel Type information
- int
id
- string
label
- string
name
- int
priority
Chapter 12. Namespace: distchannel
distchannel
12.1. Method: listDefaultMaps
Lists the default distribution channel maps.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- struct - distChannelMap
- string
os
- Operating system - string
release
- Operating system relase - string
arch_name
- Channel architecture - string
channel_label
- Channel label - string
org_specific
-Y
for organization-specific,N
for default
12.2. Method: listMapsForOrg
Lists distribution channel maps valid for the user's organization.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- struct - distChannelMap
- string
os
- Operating system - string
release
- Operating system relase - string
arch_name
- Channel architecture - string
channel_label
- Channel label - string
org_specific
-Y
for organization-specific,N
for default
12.3. Method: listMapsForOrg
Lists distribution channel maps valid for an organization. Requires Satellite administration permissions.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- struct - distChannelMap
- string
os
- Operating system - string
release
- Operating system relase - string
arch_name
- Channel architecture - string
channel_label
- Channel label - string
org_specific
-Y
for organization-specific,N
for default
12.4. Method: setMapForOrg
Sets and overrides (or removes if channelLabel
is empty) a distribution channel map within an organization.
The following parameters are available for this method:
- string
sessionKey
- string
os
- string
release
- string
archName
- string
channelLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
Chapter 13. Namespace: errata
errata
13.1. Method: addPackages
Add a set of packages to an erratum with the given advisory name. This method only allows for modification of custom errata created either through the UI or API.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
- array:
- int -
packageId
The following return values are available for this method:
- int - represents the number of packages added, exception otherwise
13.2. Method: applicableToChannels
Returns a list of channels applicable to the erratum with the given advisory name.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
The following return values are available for this method:
- array:
- struct - channel
- int
channel_id
- string
label
- string
name
- string
parent_channel_label
13.3. Method: bugzillaFixes
Get the Bugzilla fixes for an erratum matching the given advisoryName
. The bugs are returned in a struct where the bug ID is the key.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
The following return values are available for this method:
- struct - Bugzilla info
- string
bugzilla_id
- Actual bug ID number and the key for the struct entry - string
bug_summary
- Summary where the key is the bug ID number
13.4. Method: clone
Clone a list of errata into the specified channel.
The following parameters are available for this method:
- string
sessionKey
- string
channel_label
- array:
- string
advisory
- The advisory name of the errata to clone
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
13.5. Method: cloneAsOriginal
Clones a list of errata into a specified cloned channel according to the original errata.
The following parameters are available for this method:
- string
sessionKey
- string
channel_label
- array:
- string -
advisory
- The advisory name of the errata to clone
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
13.6. Method: cloneAsOriginalAsync
Asynchronously clones a list of errata into a specified cloned channel according the original errata.
The following parameters are available for this method:
- string
sessionKey
- string
channel_label
- array:
- string
advisory
- The advisory name of the errata to clone
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
13.7. Method: cloneAsync
Asynchronously clone a list of errata into the specified channel.
The following parameters are available for this method:
- string
sessionKey
- string
channel_label
- array:
- string
advisory
- The advisory name of the errata to clone
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
13.8. Method: create
Create a custom errata. If publish
is set to true, the errata is published too.
The following parameters are available for this method:
- string
sessionKey
- struct - errata info
- string
synopsis
- string
advisory_name
- int
advisory_release
- string
advisory_type
- Type of advisory (one of the following:Security Advisory
,Product Enhancement Advisory
, orBug Fix Advisory
- string
product
- string
errataFrom
- string
topic
- string
description
- string
references
- string
notes
- string
solution
- array:
- struct - bug
- int
id
- Bug ID - string
summary
- string
url
- array:
- string
keyword
- List of keywords to associate with the errata
- array:
- int -
packageId
- boolean
publish
- Should the errata be published - array:
- string -
channelLabel
- List of channels to publish the errata; ignored ifpublish
is set tofalse
The following return values are available for this method:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
13.9. Method: delete
Delete an erratum. This method only allows deletion of custom errata created either through the UI or API.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
13.10. Method: findByCve
Looks up the details for errata associated with the given CVE value e.g. CVE-2008-3270
The following parameters are available for this method:
- string
sessionKey
- string
cveName
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
13.11. Method: getDetails
Retrieves the details for the erratum matching the given advisory name.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
The following return values are available for this method:
- struct - erratum
- string
issue_date
- string
update_date
- string
last_modified_date
- This date is only included for published erratum and represents the erratum's late date of modification - string
synopsis
- int
release
- string
type
- string
product
- string
errataFrom
- string
topic
- string
description
- string
references
- string
notes
- string
solution
13.12. Method: listAffectedSystems
Return the list of systems affected by the erratum with advisory name.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
13.13. Method: listByDate
List errata that have been applied to a particular channel by date.
Note
channel.software.listErrata(string sessionKey, string channelLabel)
now replaces it.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
13.14. Method: listCves
Returns a list of CVEs applicable to the erratum with the given advisory name. CVEs may be associated only with published errata.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
The following return values are available for this method:
- array:
- string
cveName
13.15. Method: listKeywords
Get the keywords associated with an erratum matching the given advisory name.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
The following return values are available for this method:
- array:
- string - Keyword associated with erratum
13.16. Method: listPackages
Returns a list of the packages affected by the erratum with the given advisory name.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
The following return values are available for this method:
- array:
- struct - package
- int
id
- string
name
- string
epoch
- string
version
- string
release
- string
arch_label
- array
providing_channels
- string - Channel label providing this package
- string
build_host
- string
description
- string
checksum
- string
checksum_type
- string
vendor
- string
summary
- string
cookie
- string
license
- string
path
- string
file
- string
build_date
- string
last_modified_date
- string
size
- string
payload_size
13.17. Method: listUnpublishedErrata
Returns a list of unpublished errata
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - erratum
- int
id
- int
published
- string
advisory
- string
advisory_name
- string
advisory_type
- string
synopsis
- dateTime.iso8601
created
- dateTime.iso8601
update_date
13.18. Method: publish
Publish an existing unpublished errata to a set of channels.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
- array:
- string -
channelLabel
- List of channel labels to publish the errata
The following return values are available for this method:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
13.19. Method: publishAsOriginal
Publishes an existing unpublished cloned errata to a set of cloned channels according to its original erratum.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
- array:
- string
channelLabel
- List of channel labels to publish errata
The following return values are available for this method:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of advisory - string
advisory_name
- Name of advisory - string
advisory_synopsis
- Summary of erratum
13.20. Method: removePackages
Remove a set of packages from an erratum with the given advisory name. This method only allows for modification of custom errata created either through the UI or API.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
- array:
- int -
packageId
The following return values are available for this method:
- int - Represents the number of packages removed, exception otherwise
13.21. Method: setDetails
Set erratum details. All arguments are optional and are only modified if included in the struct. This method only allows for modification of custom errata created either through the UI or API.
The following parameters are available for this method:
- string
sessionKey
- string
advisoryName
- struct - errata details
- string
synopsis
- string
advisory_name
- int
advisory_release
- string
advisory_type
- Type of advisory (one of the following:Security Advisory
,Product Enhancement Advisory
, orBug Fix Advisory
) - string
product
- dateTime.iso8601
issue_date
- dateTime.iso8601
update_date
- string
errataFrom
- string
topic
- string
description
- string
references
- string
notes
- string
solution
- array
bugs
-bugs
is the key into the structarray:- struct - bug
- int
id
- Bug ID - string
summary
- string
url
- array
keywords
-keywords
is the key into the structarray:- string -
keyword
- List of keywords to associate with the errata
- array
CVEs
-cves
is the key into the structarray:- string -
cves
- List of CVEs to associate with the errata (valid only for published errata)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
Chapter 14. Namespace: kickstart
kickstart
14.1. Method: cloneProfile
Clone a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabelToClone
- Label of the kickstart profile to clone - string
newKsLabel
- Label of the cloned profile
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.2. Method: createProfile
Import a kickstart profile into Red Hat Network.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile - string
kickstartHost
- Kickstart hostname (of a Red Hat Satellite or Red Hat Satellite Proxy) used to construct the default download URL for the new kickstart profile. - string
rootPassword
-root
password - string
updateType
- Update the profile to use the newest tree available. Possible values are:none
(default),red_hat
(only use kickstart trees synchronized from Red Hat), orall
(includes custom kickstart trees)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.3. Method: createProfile
Import a kickstart profile into Red Hat Network.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile - string
kickstartHost
- Kickstart hostname (of a Red Hat Satellite or Red Hat Satellite Proxy) used to construct the default download URL for the new kickstart profile - string
rootPassword
-root
password
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.4. Method: createProfileWithCustomUrl
Import a kickstart profile into Red Hat Network.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile - boolean
downloadUrl
- Download URL, ordefault
to use the kickstart tree's default URL. - string
rootPassword
-root
password
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.5. Method: createProfileWithCustomUrl
Import a kickstart profile into Red Hat Network.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile - boolean
downloadUrl
- Download URL, ordefault
to use the kickstart tree's default URL. - string
rootPassword
-root
password - string
updateType
- Update the profile to use the newest tree available. Possible values are:none
(default),red_hat
(only use kickstart trees synchronized from Red Hat), orall
(includes custom kickstart trees)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.6. Method: deleteProfile
Delete a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of the kickstart profile to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.7. Method: disableProfile
Enable or disable a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the kickstart tree to enable or disable - string
disabled
-true
to disable the profile
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.8. Method: findKickstartForIp
Find an associated kickstart for a given IP address.
The following parameters are available for this method:
- string
sessionKey
- string
ipAddress
- The IP address to find
The following return values are available for this method:
- string -
label
of the kickstart. Returns an empty string ("") if not found.
14.9. Method: importFile
Import a kickstart profile into Red Hat Network.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile - string
kickstartFileContents
- Contents of the kickstart file to import
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
14.10. Method: importFile
Import a kickstart profile into Red Hat Network.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile - string
kickstartHost
- Kickstart hostname (of a Red Hat Satellite or Red Hat Satellite Proxy) used to construct the default download URL for the new kickstart profile; using this option signifies that this default URL will be used instead of anyurl
/nfs
/cdrom
/harddrive
commands in the kickstart file itself - string
kickstartFileContents
- Contents of the kickstart file to import
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
14.11. Method: importFile
Import a kickstart profile into Red Hat Network.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile - string
kickstartHost
- Kickstart hostname (of a Red Hat Satellite or Red Hat Satellite Proxy) used to construct the default download URL for the new kickstart profile. Using this option signifies that this default URL will be used instead of anyurl
/nfs
/cdrom
/harddrive
commands in the kickstart file itself. - string
kickstartFileContents
- Contents of the kickstart file to import - string
updateType
- Update the profile to use the newest tree available. Possible values are:none
(default),red_hat
(only use kickstart trees synchronized from Red Hat), orall
(includes custom kickstart trees)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.12. Method: importRawFile
Import a raw kickstart file into Red Hat Satellite.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile - string
kickstartFileContents
- Contents of the kickstart file to import
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.13. Method: importRawFile
Import a raw kickstart file into Red Hat Satellite.
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Label for the new kickstart profile - string
virtualizationType
-none
,para_host
,qemu
,xenfv
, orxenpv
- string
kickstartableTreeLabel
- Label of a kickstartable tree to associate the new profile. - string
kickstartFileContents
- Contents of the kickstart file to import. - string
updateType
- Update the profile to use the newest tree available. Possible values are:none
(default),red_hat
(only use kickstart trees synchronized from Red Hat), orall
(includes custom kickstart trees)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
14.14. Method: isProfileDisabled
Returns whether a kickstart profile is disabled
The following parameters are available for this method:
- string
sessionKey
- string
profileLabel
- Kickstart profile label
The following return values are available for this method:
true
if profile is disabled
14.15. Method: listAllIpRanges
List all IP ranges and their associated kickstarts available in the user's organization.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - Kickstart IP range
- string
ksLabel
- The kickstart label associated with the IP range - string
max
- The maximum IP of the range - string
min
- The minimum IP of the range
14.16. Method: listKickstartableChannels
List kickstartable channels for the logged in user.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel
- int
id
- string
name
- string
label
- string
arch_name
- string
summary
- string
description
- string
checksum_label
- dateTime.iso8601
last_modified
- string
maintainer_name
- string
maintainer_email
- string
maintainer_phone
- string
support_policy
- string
gpg_key_url
- string
gpg_key_id
- string
gpg_key_fp
- dateTime.iso8601
yumrepo_last_sync
(optional) - string
end_of_life
- string
parent_channel_label
- string
clone_original
- array:
- struct - contentSources
- int
id
- string
label
- string
sourceUrl
- string
type
14.17. Method: listKickstartableTrees
List the available kickstartable trees for the given channel.
Note
kickstart.tree.list(string sessionKey, string channelLabel)
method.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of channel to search
The following return values are available for this method:
- array:
- struct - kickstartable tree
- int
id
- string
label
- string
base_path
- int
channel_id
14.18. Method: listKickstarts
Provides a list of kickstart profiles visible to the user's organization.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - kickstart
- string
label
- string
tree_label
- string
name
- boolean
advanced_mode
- boolean
org_default
- boolean
active
- string
update_type
14.19. Method: renameProfile
Rename a kickstart profile in Red Hat Satellite.
The following parameters are available for this method:
- string
sessionKey
- string
originalLabel
- Label for the kickstart profile to rename - string
newLabel
- New label for the kickstart profile
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
Chapter 15. Namespace: kickstart.filepreservation
kickstart.filepreservation
15.1. Method: create
Create a new file preservation list.
The following parameters are available for this method:
- string
session_key
- string
name
- Name of the file list to create - array:
- string
name
- File names to include
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
15.2. Method: delete
Delete a file preservation list.
The following parameters are available for this method:
- string
session_key
- string
name
- Name of the file list to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
15.3. Method: getDetails
Returns all of the data associated with the given file preservation list.
The following parameters are available for this method:
- string
session_key
- string
name
- Name of the file list to retrieve details
The following return values are available for this method:
- struct - file list
- string
name
- array
file_names
- string
name
15.4. Method: listAllFilePreservations
List all file preservation lists for the organization associated with the user logged into the given session.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - file preservation
- int
id
- string
name
- dateTime.iso8601
created
- dateTime.iso8601
last_modified
Chapter 16. Namespace: kickstart.keys
kickstart.keys
16.1. Method: create
Creates a new key with the given parameters.
The following parameters are available for this method:
- string
session_key
- string
description
- string
type
- Valid values areGPG
orSSL
- string
content
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
16.2. Method: delete
deletes the key identified by the given parameters
The following parameters are available for this method:
- string
session_key
- string
description
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
16.3. Method: getDetails
Returns all of the data associated with the given key.
The following parameters are available for this method:
- string
session_key
- string
description
The following return values are available for this method:
- struct - key
- string
description
- string
type
- string
content
16.4. Method: listAllKeys
List all keys for the org associated with the user logged into the given session.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - key
- string
description
- string
type
16.5. Method: update
Updates type and content of the key identified by the description.
The following parameters are available for this method:
- string
session_key
- string
description
- string
type
- Valid values areGPG
orSSL
- string
content
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 17. Namespace: kickstart.profile
kickstart.profile
17.1. Method: addIpRange
Add an IP range to a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
label
- The label of the kickstart - string
min
- The IP address for minimum of the range - string
max
- The IP address for the maximum of the range
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
17.2. Method: addScript
Add a pre or post script to a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart label to add the script - string
name
- The kickstart script name - string
contents
- The full script to add - string
interpreter
- The path to the interpreter to use e.g./bin/bash
; an empty string enables the kickstart default interpreter - string
type
- The type of script; eitherpre
orpost
- boolean
chroot
- Whether to run the script in the chrooted install location (recommended) or not.
The following return values are available for this method:
- int
id
- The ID of the added script
17.3. Method: addScript
Add a pre or post script to a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart label to add the script - string
name
- The kickstart script name - string
contents
- The full script to add - string
interpreter
- The path to the interpreter to use e.g./bin/bash
; an empty string enables the kickstart default interpreter - string
type
- The type of script; eitherpre
orpost
- boolean
chroot
- Whether to run the script in the chrooted install location (recommended) or not. - boolean
template
- Enable templating using cobbler
The following return values are available for this method:
- int
id
- The ID of the added script
17.4. Method: addScript
Add a pre or post script to a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart label to add the script - string
name
- The kickstart script name - string
contents
- The full script to add - string
interpreter
- The path to the interpreter to use e.g./bin/bash
; an empty string enables the kickstart default interpreter - string
type
- The type of script; eitherpre
orpost
- boolean
chroot
- Whether to run the script in the chrooted install location (recommended) or not. - boolean
template
- Enable templating using cobbler - boolean
erroronfail
- Whether to throw an error if the script fails or not
The following return values are available for this method:
- int
id
- The ID of the added script
17.5. Method: compareActivationKeys
Returns a list for each kickstart profile. Each list contains activation keys not present on the other profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel1
- string
kickstartLabel2
The following return values are available for this method:
- struct - Comparison Info
- array "kickstartLabel1" - Actual label of the first kickstart profile is the key into the struct
- array:
- struct - activation key
- string
key
- string
description
- int
usage_limit
- string
base_channel_label
- array
child_channel_labels
- string
childChannelLabel
- array
entitlements
- string
entitlementLabel
- array
server_group_ids
- string
serverGroupId
- array
package_names
- string
packageName
- (deprecated by packages)
- array
packages
- struct - package
- string
name
- packageName - string
arch
- archLabel - optional
- boolean
universal_default
- boolean
disabled
- array "kickstartLabel2" - Actual label of the second kickstart profile is the key into the struct
- array:
- struct - activation key
- string
key
- string
description
- int
usage_limit
- string
base_channel_label
- array
child_channel_labels
- string
childChannelLabel
- array
entitlements
- string
entitlementLabel
- array
server_group_ids
- string
serverGroupId
- array
package_names
- string
packageName
- (deprecated by packages)
- array
packages
- struct - package
- string
name
- packageName - string
arch
- archLabel - optional
- boolean
universal_default
- boolean
disabled
17.6. Method: compareAdvancedOptions
Returns a list for each kickstart profile. Each list contains the properties that differ between the profiles and their values for that specific profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel1
- string
kickstartLabel2
The following return values are available for this method:
- struct - Comparison Info
- array "kickstartLabel1" - Actual label of the first kickstart profile is the key into the struct
- array:
- struct - value
- string
name
- string
value
- boolean
enabled
- array "kickstartLabel2" - Actual label of the second kickstart profile is the key into the struct
- array:
- struct - value
- string
name
- string
value
- boolean
enabled
17.7. Method: comparePackages
Returns a list for each kickstart profile. Each list contains package names not present on the other profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel1
- string
kickstartLabel2
The following return values are available for this method:
- struct - Comparison Info
- array "kickstartLabel1" - Actual label of the first kickstart profile is the key into the struct
- array:
- string -
package
name
- array "kickstartLabel2" - Actual label of the second kickstart profile is the key into the struct
- array:
- string -
package
name
17.8. Method: downloadKickstart
Download the full contents of a kickstart file.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of the kickstart to download. - string
host
- The host to use when referring to the satellite itself; usually this is the FQDN of the Satellite, but can be the IP address or shortname of it too
The following return values are available for this method:
- string - The contents of the kickstart file
Note
%post
section. If one is associated, it is used for registration.
17.9. Method: downloadRenderedKickstart
Downloads the Cobbler-rendered Kickstart file.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of the kickstart to download
The following return values are available for this method:
- string - The contents of the kickstart file
17.10. Method: getAdvancedOptions
Get advanced options for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- Label of kickstart profile to be changed
The following return values are available for this method:
- array:
- struct - option
- string
name
- string
arguments
17.11. Method: getCfgPreservation
Get ks.cfg
preservation option for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile to be changed.
The following return values are available for this method:
- boolean - The value of the option;
true
means thatks.cfg
is copied to/root
andfalse
means it is not.
17.12. Method: getChildChannels
Get the child channels for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile
The following return values are available for this method:
- array:
- string -
channelLabel
17.13. Method: getCustomOptions
Get custom options for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
The following return values are available for this method:
- array:
- struct - option
- int
id
- string
arguments
17.14. Method: getKickstartTree
Get the kickstart tree for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile to be changed
The following return values are available for this method:
- string
kstreeLabel
- Label of the kickstart tree
17.15. Method: getUpdateType
Get the update type for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile
The following return values are available for this method:
- string
update_type
- Update type for this kickstart profile
17.16. Method: getVariables
Returns a list of variables associated with the specified kickstart profile
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
The following return values are available for this method:
- array:
- struct - kickstart variable
- string
key
- string or int
value
17.17. Method: listIpRanges
List all IP ranges for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
label
- The label of the kickstart
The following return values are available for this method:
- array:
- struct - Kickstart IP Range
- string
ksLabel
- The kickstart label associated with the IP range - string
max
- The maximum IP of the range - string
min
- The minimum IP of the range
17.18. Method: listScripts
List the pre and post scripts for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of the kickstart
The following return values are available for this method:
- array:
- struct - kickstart script
- int
id
- string
contents
- string
script_type
- The type of script; eitherpre
orpost
- string
interpreter
- The scripting language interpreter to use for this script. An empty string indicates the default kickstart shell. - boolean
chroot
-true
if the script executes within the chroot environment. - boolean
erroronfail
-true
if the script throws an error if it fails. - boolean
template
-true
if templating using cobbler is enabled
17.19. Method: removeIpRange
Remove an IP range from a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart label of the IP range to remove - string
ip_address
- An IP Address that falls within the range to remove. The minimum or maximum of the range also works.
The following return values are available for this method:
- int -
1
on successful removal,0
if range was not found for the specified kickstart, exception otherwise.
17.20. Method: removeScript
Remove a script from a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart from which to remove the script - int
scriptId
- The ID of the script to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
17.21. Method: setAdvancedOptions
Set advanced options for a kickstart profile. If md5_crypt_rootpw
is set to True
, root_pw
is taken as plain text and MD5 encrypted on server side, otherwise a hash encoded password (according to the auth
option) is expected
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- array:
- struct - advanced options
- string
name
- Name of the advanced option. Valid option names:autostep
,interactive
,install
,upgrade
,text
,network
,cdrom
,harddrive
,nfs
,url
,lang
,langsupport keyboard
,mouse
,device
,deviceprobe
,zerombr
,clearpart
,bootloader
,timezone
,auth
,rootpw
,selinux
,reboot
,firewall
,xconfig
,skipx
,key
,ignoredisk
,autopart
,cmdline
,firstboot
,graphical
,iscsi
,iscsiname
,logging
,monitor
,multipath
,poweroff
,halt
,services
,shutdown
,user
,vnc
,zfcp
,driverdisk
,md5_crypt_rootpw
- string
arguments
- Arguments of the option
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
17.22. Method: setCfgPreservation
Set ks.cfg
preservation option for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile to be changed - boolean
preserve
- Defines whether or notks.cfg
and all%include
fragments are copied to/root
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
17.23. Method: setChildChannels
Set the child channels for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile to be changed - string[] channelLabels - List of labels of child channels
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
17.24. Method: setCustomOptions
Set custom options for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- string
options
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
17.25. Method: setKickstartTree
Set the kickstart tree for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile to be changed - string
kstreeLabel
- Label of new kickstart tree
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
17.26. Method: setLogging
Set logging options for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile to be changed - boolean
pre
- Defines whether or not to log the pre section of a kickstart to/root/ks-pre.log
- boolean
post
- Defines whether or not to log the post section of a kickstart to/root/ks-post.log
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
17.27. Method: setUpdateType
Set the update typefor a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kslabel
- Label of kickstart profile to be changed - string
updateType
- The new update type to set. Possible values arered_hat
,all
, andnone
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
17.28. Method: setVariables
Associates list of kickstart variables with the specified kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- array:
- struct - kickstart variable
- string
key
- string or int
value
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 18. Namespace: kickstart.profile.keys
kickstart.profile.keys
18.1. Method: addActivationKey
Add an activation key association to the kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label - string
key
- The activation key
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
18.2. Method: getActivationKeys
Looks up the activation keys associated with the kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- array:
- struct - activation key
- string
key
- string
description
- int
usage_limit
- string
base_channel_label
- array
child_channel_labels
- string
childChannelLabel
- array
entitlements
- string
entitlementLabel
- array
server_group_ids
- string
serverGroupId
- array
package_names
- string
packageName
(deprecated bypackages
)
- array
packages
- struct - package
- string
name
- Package name - string
arch
- Architecture label (optional)
- boolean
universal_default
- boolean
disabled
18.3. Method: removeActivationKey
Remove an activation key association from the kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label - string
key
- The activation key
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
Chapter 19. Namespace: kickstart.profile.software
kickstart.profile.software
19.1. Method: appendToSoftwareList
Append the list of software packages to a kickstart profile. Duplicate packages are ignored.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of a kickstart profile - string[] packageList - A list of package names to be added to the profile
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
19.2. Method: getSoftwareList
Get a list of a kickstart profile's software packages.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of a kickstart profile
The following return values are available for this method:
- Array:
- string - A list of a kickstart profile's software packages
19.3. Method: setSoftwareList
Set the list of software packages for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of a kickstart profile - Array:
- string
packageList
- A list of package names to be set on the profile
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 20. Namespace: kickstart.profile.system
kickstart.profile.system
20.1. Method: addFilePreservations
Adds the given list of file preservations to the specified kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel
- array:
- string -
filePreservations
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.2. Method: addKeys
Adds the given list of keys to the specified kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel
- array:
- string -
keyDescription
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.3. Method: checkConfigManagement
Check the configuration management status for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- boolean
enabled
-true
if configuration management is enabled; otherwise,false
20.4. Method: checkRemoteCommands
Check the remote commands status flag for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- boolean
enabled
-true
if remote commands support is enabled; otherwise,false
20.5. Method: disableConfigManagement
Disables the configuration management flag in a kickstart profile so that a system created using this profile is not configuration capable.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.6. Method: disableRemoteCommands
Disables the remote command flag in a kickstart profile so that a system created using this profile is capable of running remote commands.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.7. Method: enableConfigManagement
Enables the configuration management flag in a kickstart profile so that a system created using this profile is configuration capable.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.8. Method: enableRemoteCommands
Enables the remote command flag in a kickstart profile so that a system created using this profile is capable of running remote commands.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.9. Method: getLocale
Retrieves the locale for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- struct - locale info
- string
locale
- boolean
useUtc
true
- The hardware clock uses UTCfalse
- The hardware clock does not use UTC
20.10. Method: getPartitioningScheme
Get the partitioning scheme for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of a kickstart profile.
The following return values are available for this method:
- Array:
- string - A list of partitioning commands used to setup the partitions, logical volumes and volume groups.
20.11. Method: getRegistrationType
Returns the registration type of a given kickstart profile. Registration type is one of reactivation
, deletion
, or none
. These types determine the behavior of the registration when using this profile for reprovisioning.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel
The following return values are available for this method:
- string
registrationType
- reactivation
- deletion
- none
20.12. Method: getSELinux
Retrieves the SELinux enforcing mode property of a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label
The following return values are available for this method:
- string
enforcingMode
- enforcing
- permissive
- disabled
20.13. Method: listFilePreservations
Returns the set of all file preservations associated with the given kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel
The following return values are available for this method:
- array:
- struct - file list
- string
name
- array
file_names
- string
name
20.14. Method: listKeys
Returns the set of all keys associated with the given kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel
The following return values are available for this method:
- array:
- struct - key
- string
description
- string
type
- string
content
20.15. Method: removeFilePreservations
Removes the given list of file preservations from the specified kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel
- array:
- string -
filePreservations
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.16. Method: removeKeys
Removes the given list of keys from the specified kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel
- array:
- string -
keyDescription
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.17. Method: setLocale
Sets the locale for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label - string
locale
- The locale code - boolean
useUtc
true
- The hardware clock uses UTCfalse
- The hardware clock does not use UTC
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.18. Method: setPartitioningScheme
Set the partitioning scheme for a kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The label of the kickstart profile to update. - Array:
- string
scheme
- The partitioning scheme is a list of partitioning command strings used to setup the partitions, volume groups and logical volumes.
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.19. Method: setRegistrationType
Sets the registration type of a given kickstart profile. Registration type is one of reactivation
, deletion
, or none
. These types determine the behaviour of re-registration when using this profile.
The following parameters are available for this method:
- string
sessionKey
- string
kickstartLabel
- string
registrationType
reactivation
- Try and generate a reactivation key and use that to register the system when reprovisioning a systemdeletion
- Try and delete the existing system profile and reregister the system being reprovisioned as newnone
- Preserve the status quo and leave the current system as a duplicate on a reprovision.
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
20.20. Method: setSELinux
Sets the SELinux enforcing mode property of a kickstart profile so that a system created using this profile has the appropriate SELinux enforcing mode.
The following parameters are available for this method:
- string
sessionKey
- string
ksLabel
- The kickstart profile label - string
enforcingMode
- The SELinux enforcing modeenforcing
permissive
disabled
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 21. Namespace: kickstart.snippet
kickstart.snippet
21.1. Method: createOrUpdate
Creates a snippet with the given name and contents if it does not exist. If it does exist, the existing snippet is updated.
The following parameters are available for this method:
- string
sessionKey
- string
name
- string
contents
The following return values are available for this method:
- struct - snippet
- string
name
- string
contents
- string
fragment
- The string to include in a kickstart file that generates this snippet - string
file
- The local path to the file containing this snippet
21.2. Method: delete
Delete the specified snippet. If the snippet is not found, 0
is returned.
The following parameters are available for this method:
- string
sessionKey
- string
name
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
21.3. Method: listAll
List all cobbler snippets for the logged in user
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - snippet
- string
name
- string
contents
- string
fragment
- The string to include in a kickstart file that generates this snippet - string
file
- The local path to the file containing this snippet
21.4. Method: listCustom
List only custom snippets for the logged in user. These snipppets are editable.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - snippet
- string
name
- string
contents
- string
fragment
- The string to include in a kickstart file that generates this snippet - string
file
- The local path to the file containing this snippet
21.5. Method: listDefault
List only pre-made default snippets for the logged in user. These snipppets are not editable.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - snippet
- string
name
- string
contents
- string
fragment
- The string to include in a kickstart file that generates this snippet - string
file
- The local path to the file containing this snippet
Chapter 22. Namespace: kickstart.tree
kickstart.tree
22.1. Method: create
Create a kickstart tree (Distribution) in Red Hat Satellite.
The following parameters are available for this method:
- string
sessionKey
- string
treeLabel
- The new kickstart tree label - string
basePath
- Path to the base or root of the kickstart tree - string
channelLabel
- Label of channel to associate with the kickstart tree. - string
installType
- Label forKickstartInstallType
(rhel_3
,rhel_4
,rhel_5
,rhel_6
,fedora_18
).
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
22.2. Method: delete
Delete a kickstart tree (Distribution) in Red Hat Satellite.
The following parameters are available for this method:
- string
sessionKey
- string
treeLabel
- Label for the kickstart tree to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
22.3. Method: deleteTreeAndProfiles
Delete a kickstarttree and any profiles associated with this kickstart tree.
Warning
The following parameters are available for this method:
- string
sessionKey
- string
treeLabel
- Label for the kickstart tree to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
22.4. Method: getDetails
The detailed information about a kickstartable tree given the tree name.
The following parameters are available for this method:
- string
sessionKey
- string
treeLabel
- Label of kickstartable tree to search
The following return values are available for this method:
- struct - kickstartable tree
- int
id
- string
label
- string
abs_path
- int
channel_id
- struct - kickstart install type
- int
id
- string
label
- string
name
22.5. Method: list
List the available kickstartable trees for the given channel.
The following parameters are available for this method:
- string
sessionKey
- string
channelLabel
- Label of channel to search
The following return values are available for this method:
- array:
- struct - kickstartable tree
- int
id
- string
label
- string
base_path
- int
channel_id
22.6. Method: listInstallTypes
List the available kickstartable install types.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - kickstart install type
- int
id
- string
label
- string
name
22.7. Method: rename
Rename a kickstart tree (Distribution) in Red Hat Satellite.
The following parameters are available for this method:
- string
sessionKey
- string
originalLabel
- Label for the kickstart tree to rename - string
newLabel
- The kickstart tree's new label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
22.8. Method: update
Edit a kickstart tree (Distribution) in Red Hat Satellite.
The following parameters are available for this method:
- string
sessionKey
- string
treeLabel
- Label for the kickstart tree - string
basePath
- Path to the base or root of the kickstart tree - string
channelLabel
- Label of channel to associate with kickstart tree - string
installType
- Label forKickstartInstallType
(rhel_3
,rhel_4
,rhel_5
,rhel_6
,fedora_18
).
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 23. Namespace: org
org
23.1. Method: create
Create a new organization and associated administrator account
The following parameters are available for this method:
- string
sessionKey
- string
orgName
- Organization name; must meet same criteria as in the web UI - string
adminLogin
- New administrator login name - string
adminPassword
- New administrator password - string
prefix
- New administrator's prefix; must match one of the values available in the web UI (i.e. Dr., Mr., Mrs., Sr., etc.) - string
firstName
- New administrator's first name - string
lastName
- New administrator's first name - string
email
- New administrator's e-mail - boolean
usePamAuth
-true
if PAM authentication should be used for the new administrator account
The following return values are available for this method:
- struct - organization info
- int
id
- string
name
- int
active_users
- Number of active users in the organization - int
systems
- Number of systems in the organization - int
trusts
- Number of trusted organizations - int
system_groups
- Number of system groups in the organization (optional) - int
activation_keys
- Number of activation keys in the organization (optional) - int
kickstart_profiles
- Number of kickstart profiles in the organization (optional) - int
configuration_channels
- Number of configuration channels in the organization (optional)
23.2. Method: delete
Delete an organization. The default organization (i.e. orgId=1
) cannot be deleted.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
23.3. Method: getCrashFileSizeLimit
Get the organization wide crash file size limit. The limit value must be a non-negative number. Zero means no limit.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- int - Crash file size limit
23.4. Method: getDetails
The detailed information about an organization given the organization ID.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- struct - organization info
- int
id
- string
name
- int
active_users
- Number of active users in the organization - int
systems
- Number of systems in the organization - int
trusts
- Number of trusted organizations - int
system_groups
- Number of system groups in the organization (optional) - int
activation_keys
- Number of activation keys in the organization (optional) - int
kickstart_profiles
- Number of kickstart profiles in the organization (optional) - int
configuration_channels
- Number of configuration channels in the organization (optional)
23.5. Method: getDetails
The detailed information about an organization given the organization name.
The following parameters are available for this method:
- string
sessionKey
- string
name
The following return values are available for this method:
- struct - organization info
- int
id
- string
name
- int
active_users
- Number of active users in the organization - int
systems
- Number of systems in the organization - int
trusts
- Number of trusted organizations - int
system_groups
- Number of system groups in the organization (optional) - int
activation_keys
- Number of activation keys in the organization (optional) - int
kickstart_profiles
- Number of kickstart profiles in the organization (optional) - int
configuration_channels
- Number of configuration channels in the organization (optional)
23.6. Method: getPolicyForScapFileUpload
Get the status of SCAP detailed result file upload settings for the given organization.
The following paramaters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- struct - scap_upload_info
- boolean
enabled
- Aggregation of detailed SCAP results is enabled - int
size_limit
- Limit (in Bytes) for a single SCAP file upload
23.7. Method: getPolicyForScapResultDeletion
Get the status of SCAP result deletion settings for the given organization.
The following paramaters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- struct - scap_deletion_info
- boolean
enabled
- Deletion of SCAP results is enabled - int
retention_period
- Period (in days) after which a scan can be deleted (if enabled).
23.8. Method: isCrashReportingEnabled
Get the status of crash reporting settings for the given organization. Returns true
if enabled, false
otherwise.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- boolean - Get the status of crash reporting settings
23.9. Method: isCrashfileUploadEnabled
Get the status of crash file upload settings for the given organization. Returns true
if enabled, false
otherwise.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- boolean - Get the status of crash file upload settings
23.10. Method: listOrgs
Returns the list of organizations.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- struct - organization info
- int
id
- string
name
- int
active_users
- Number of active users in the organization - int
systems
- Number of systems in the organization - int
trusts
- Number of trusted organizations - int
system_groups
- Number of system groups in the organization (optional) - int
activation_keys
- Number of activation keys in the organization (optional) - int
kickstart_profiles
- Number of kickstart profiles in the organization (optional) - int
configuration_channels
- Number of configuration channels in the organization (optional)
23.11. Method: listSoftwareEntitlements
List software entitlement allocation information across all organizations. Caller must be an administrator.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - entitlement usage
- string
label
- string
name
- int
free
- int
used
- int
allocated
- int
unallocated
- int
free_flex
- int
used_flex
- int
allocated_flex
- int
unallocated_flex
23.12. Method: listSoftwareEntitlements
List each organization's allocation of a given software entitlement. Organizations with no allocation are not present in the list. A value of -1
indicates unlimited entitlements.
Note
listSoftwareEntitlements(string sessionKey, string label, boolean includeUnentitled)
method.
The following parameters are available for this method:
- string
sessionKey
- string
label
- Software entitlement label
The following return values are available for this method:
- array:
- struct - entitlement usage
- int
org_id
- string
org_name
- int
allocated
- int
unallocated
- int
used
- int
free
23.13. Method: listSoftwareEntitlements
List each organization's allocation of a given software entitlement. A value of -1
indicates unlimited entitlements.
The following parameters are available for this method:
- string
sessionKey
- string
label
- Software entitlement label - boolean
includeUnentitled
- Iftrue
, the result includes both organizations that have the entitlement as well as those that do not; otherwise, the result will only include organizations that have the entitlement
The following return values are available for this method:
- array:
- struct - entitlement usage
- int
org_id
- string
org_name
- int
allocated
- int
unallocated
- int
used
- int
free
23.14. Method: listSoftwareEntitlementsForOrg
List an organization's allocation of each software entitlement. A value of -1
indicates unlimited entitlements.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- array:
- struct - entitlement usage
- string
label
- string
name
- int
allocated
- int
unallocated
- int
free
- int
used
- int
allocated_flex
- int
unallocated_flex
- int
free_flex
- int
used_flex
23.15. Method: listSystemEntitlements
Lists system entitlement allocation information across all organizations. Caller must be an administrator.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - entitlement usage
- string
label
- string
name
- int
free
- int
used
- int
allocated
- int
unallocated
- int
free_flex
- int
used_flex
- int
allocated_flex
- int
unallocated_flex
23.16. Method: listSystemEntitlements
List each organization's allocation of a system entitlement. If the organization has no allocation for a particular entitlement, it does not appear in the list.
Note
listSystemEntitlements(string sessionKey, string label, boolean includeUnentitled)
method.
The following parameters are available for this method:
- string
sessionKey
- string
label
The following return values are available for this method:
- array:
- struct - entitlement usage
- int
org_id
- string
org_name
- int
allocated
- int
unallocated
- int
used
- int
free
23.17. Method: listSystemEntitlements
List each organization's allocation of a system entitlement.
The following parameters are available for this method:
- string
sessionKey
- string
label
- boolean
includeUnentitled
- Iftrue
, the result includes both organizations that have the entitlement as well as those that do not; otherwise, the result only includes organizations that have the entitlement
The following return values are available for this method:
- array:
- struct - entitlement usage
- int
org_id
- string
org_name
- int
allocated
- int
unallocated
- int
used
- int
free
23.18. Method: listSystemEntitlementsForOrg
List an organization's allocation of each system entitlement.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- array:
- struct - entitlement usage
- string
label
- string
name
- int
free
- int
used
- int
allocated
- int
unallocated
23.19. Method: listUsers
Returns the list of users in a given organization.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- array:
- struct - user
- string
login
- string
login_uc
- string
name
- string
email
- boolean
is_org_admin
23.20. Method: migrateSystems
Migrate systems from one organization to another. If a Satellite administrator executes this method, the systems migrate from their current organization to the organization specified by the toOrgId
. If organization administrator executea this method, the systems existing in the same organization as that administrator migrate to the organization specified by the toOrgId
. In any scenario, the origin and destination organizations are defined in a trust.
The following parameters are available for this method:
- string
sessionKey
- int
toOrgId
- ID of the destination organization for the system(s) migration - array:
- int
systemId
The following return values are available for this method:
- array:
- int
serverIdMigrated
23.21. Method: setCrashFileSizeLimit
Set the organization-wide crash file size limit. The limit value must be non-negative. Zero means no limit.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- int
limit
- The limit to set (non-negative value)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
23.22. Method: setCrashReporting
Set the status of crash reporting settings for the given organization. Disabling crash reporting automatically disables crash file upload.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- boolean
enable
- Usetrue
orfalse
to enable or disable respectively
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
23.23. Method: setCrashfileUpload
Set the status of crash file upload settings for the given organization. Modifying the settings is possible as long as crash reporting is enabled.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- boolean
enable
- Usetrue
orfalse
to enable or disable respectively
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
23.24. Method: setPolicyForScapFileUpload
Set the status of SCAP detailed result file upload settings for the given organization.
The following paramaters are available for this method:
- string
sessionKey
- int
orgId
- struct - scap_upload_info
- boolean
enabled
- Aggregation of detailed SCAP results is enabled - int
size_limit
- Limit (in Bytes) for a single SCAP file upload
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
23.25. Method: setPolicyForScapResultDeletion
Set the status of SCAP result deletion settings for the given organization.
The following paramaters are available for this method:
- string
sessionKey
- int
orgId
- struct - scap_deletion_info
- boolean
enabled
- Deletion of SCAP results is enabled - int
retention_period
- Period (in days) after which a scan can be deleted (if enabled).
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
23.26. Method: setSoftwareEntitlements
Set an organization's entitlement allocation for the given software entitlement. If increasing the entitlement allocation, the default organization (i.e. orgId=1
) must have a sufficient number of free entitlements.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- string
label
- Software entitlement label - int
allocation
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
23.27. Method: setSoftwareFlexEntitlements
Set an organization's flex entitlement allocation for the given software entitlement. If increasing the flex entitlement allocation, the default organization (i.e. orgId=1
) must have a sufficient number of free flex entitlements.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- string
label
- Software entitlement label - int
allocation
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
23.28. Method: setSystemEntitlements
Set an organization's entitlement allocation for the given software entitlement. If increasing the entitlement allocation, the default organization (i.e. orgId=1
) must have a sufficient number of free entitlements.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- string
label
- System entitlement label. Valid values include:enterprise_entitled
monitoring_entitled
provisioning_entitled
virtualization_host
virtualization_host_platform
- int
allocation
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
23.29. Method: updateName
Updates the name of an organization/
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- string
name
- Organization name; must meet same criteria as in the web UI
The following return values are available for this method:
- struct - organization info
- int
id
- string
name
- int
active_users
- Number of active users in the organization - int
systems
- Number of systems in the organization - int
trusts
- Number of trusted organizations - int
system_groups
- Number of system groups in the organization (optional) - int
activation_keys
- Number of activation keys in the organization (optional) - int
kickstart_profiles
- Number of kickstart profiles in the organization (optional) - int
configuration_channels
- Number of configuration channels in the organization (optional)
Chapter 24. Namespace: org.trusts
org.trusts
24.1. Method: addTrust
Add an organization to the list of trusted organizations.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- int
trustOrgId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
24.2. Method: getDetails
The trust details about an organization given the organization's ID.
The following parameters are available for this method:
- string
sessionKey
- int
trustOrgId
- ID of the trusted organization
The following return values are available for this method:
- struct - org trust details
- dateTime.iso8601
created
- Date the organization was created - dateTime.iso8601
trusted_since
- Date the organization was defined as trusted - int
channels_provided
- Number of channels provided by the organization - int
channels_consumed
- Number of channels consumed by the organization - int
systems_migrated_to
- Number of systems migrated to the organization - int
systems_migrated_from
- Number of systems migrated from the organization
24.3. Method: listChannelsConsumed
Lists all software channels that the organization given may consume from the user's organization.
The following parameters are available for this method:
- string
sessionKey
- int
trustOrgId
- ID of the trusted organization
The following return values are available for this method:
- array:
- struct - channel info
- int
channel_id
- string
channel_name
- int
packages
- int
systems
24.4. Method: listChannelsProvided
Lists all software channels that the defined organization is providing to the user's organization.
The following parameters are available for this method:
- string
sessionKey
- int
trustOrgId
- ID of the trusted organization
The following return values are available for this method:
- array:
- struct - channel info
- int
channel_id
- string
channel_name
- int
packages
- int
systems
24.5. Method: listOrgs
List all organanizations the user's organization trusts.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - trusted organizations
- int
org_id
- string
org_name
- int
shared_channels
24.6. Method: listSystemsAffected
Get a list of systems within the trusted organization that would be affected if the trust relationship was removed. This basically lists systems that are sharing at least one package.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- string
trustOrgId
The following return values are available for this method:
- array:
- struct - affected systems
- int
systemId
- string
systemName
24.7. Method: listTrusts
Returns the list of trusted organizations.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
The following return values are available for this method:
- array:
- struct - trusted organizations
- int
orgId
- string
orgName
- bool
trustEnabled
24.8. Method: removeTrust
Remove an organization to the list of trusted organizations.
The following parameters are available for this method:
- string
sessionKey
- int
orgId
- int
trustOrgId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 25. Namespace: packages
packages
25.1. Method: findByNvrea
Looks up the details for packages with the given name, version, release, architecture label, and optionally epoch.
The following parameters are available for this method:
- string
sessionKey
- string
name
- string
version
- string
release
- string
epoch
- If set to something other than empty string, strict matching will be used and the epoch string must be correct; if set to an empty string and if the epoch is null or there is only one NVRA combination, the NVRA combination is returned (Empty string is recommended) - string
archLabel
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- int
id
- string
arch_label
- string
path
- The path on that file system that the package resides - string
provider
- The provider of the package, determined by the gpg key it was signed with - dateTime.iso8601
last_modified
25.2. Method: getDetails
Retrieve details for the package with the ID.
The following parameters are available for this method:
- string
sessionKey
- int
packageId
The following return values are available for this method:
- struct - package
- int
id
- string
name
- string
epoch
- string
version
- string
release
- string
arch_label
- array
providing_channels
- string
Channel
label providing this package
- string
build_host
- string
description
- string
checksum
- string
checksum_type
- string
vendor
- string
summary
- string
cookie
- string
license
- string
file
- string
build_date
- string
last_modified_date
- string
size
- string
path
- The path on the Satellite's file system that the package resides - string
payload_size
25.3. Method: getPackage
Retrieve the package file associated with a package.
Important
getPackageUrl
method.
The following parameters are available for this method:
- string
sessionKey
- int
package_id
The following return values are available for this method:
- binary object - package file
25.4. Method: getPackageUrl
Retrieve the URL used to download a package. The URL expires after a certain time period.
The following parameters are available for this method:
- string
sessionKey
- int
package_id
The following return values are available for this method:
- string - The download url
25.5. Method: listChangelog
List the change log for a package.
The following parameters are available for this method:
- string
sessionKey
- int
packageId
The following return values are available for this method:
- string
25.6. Method: listDependencies
List the dependencies for a package.
The following parameters are available for this method:
- string
sessionKey
- int
packageId
The following return values are available for this method:
- array:
- struct - dependency
- string "dependency"
- string "dependency_type" - One of the following:
- requires
- conflicts
- obsoletes
- provides
- string "dependency_modifier"
25.7. Method: listFiles
List the files associated with a package.
The following parameters are available for this method:
- string
sessionKey
- int
packageId
The following return values are available for this method:
- array:
- struct - file info
- string
path
- string
type
- string
last_modified_date
- string
checksum
- string
checksum_type
- int
size
- string
linkto
25.8. Method: listProvidingChannels
List the channels that provide the a package.
The following parameters are available for this method:
- string
sessionKey
- int
packageId
The following return values are available for this method:
- array:
- struct - channel
- string
label
- string
parent_label
- string
name
25.9. Method: listProvidingErrata
List the errata providing a package.
The following parameters are available for this method:
- string
sessionKey
- int
packageId
The following return values are available for this method:
- array:
- struct - errata
- string
advisory
- string
issue_date
- string
last_modified_date
- string
update_date
- string
synopsis
- string
type
25.10. Method: removePackage
Remove a package from the satellite.
The following parameters are available for this method:
- string
sessionKey
- int
packageId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 26. Namespace: packages.provider
packages.provider
26.1. Method: associateKey
Associate a package security key and with the package provider. If the provider or key does not exist, it is created. User executing the request must be an administrator.
The following parameters are available for this method:
- string
sessionKey
- string
providerName
- The provider name - string
key
- The actual key - string
type
- The type of the key. Onlygpg
is supported
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
26.2. Method: list
List all Package Providers. User executing the request must be an administrator.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - package provider
- string
name
- array
keys
- struct - package security key
- string
key
- string
type
26.3. Method: listKeys
List all security keys associated with a package provider. User executing the request must be an administrator.
The following parameters are available for this method:
- string
sessionKey
- string
providerName
- The provider name
The following return values are available for this method:
- array:
- struct - package security key
- string
key
- string
type
Chapter 27. Namespace: packages.search
packages.search
27.1. Method: advanced
Advanced method to search lucene indexes with a passed in query written in Lucene Query Parser syntax. Lucene Query Parser syntax is defined at lucene.apache.org. Fields searchable for packages include: name
, epoch
, version
, release
, arch
, description
, summary
.
Example 27.1. Lucene query example
name:kernel AND version:2.6.18 AND -description:devel
The following parameters are available for this method:
- string
sessionKey
- string
luceneQuery
- A query written in the form of Lucene Query Parser Syntax
The following return values are available for this method:
- array:
- struct - package overview
- int
id
- string
name
- string
summary
- string
description
- string
version
- string
release
- string
arch
- string
epoch
- string
provider
27.2. Method: advancedWithActKey
Advanced method to search lucene indexes with a passed in query written in Lucene Query Parser syntax, additionally this method will limit results to those which are associated with a given activation key. Lucene Query Parser syntax is defined at lucene.apache.org. Fields searchable for packages include: name
, epoch
, version
, release
, arch
, description
, summary
.
Example 27.2. Lucene query example
name:kernel AND version:2.6.18 AND -description:devel
The following parameters are available for this method:
- string
sessionKey
- string
luceneQuery
- A query written in the form of Lucene Query Parser Syntax - string
actKey
- Activation key containing packages
The following return values are available for this method:
- array:
- struct - package overview
- int
id
- string
name
- string
summary
- string
description
- string
version
- string
release
- string
arch
- string
epoch
- string
provider
27.3. Method: advancedWithChannel
Advanced method to search lucene indexes with a passed in query written in Lucene Query Parser syntax, additionally this method will limit results to those which are in the passed in channel label. Lucene Query Parser syntax is defined at lucene.apache.org. Fields searchable for packages include: name
, epoch
, version
, release
, arch
, description
, summary
.
Example 27.3. Lucene query example
name:kernel AND version:2.6.18 AND -description:devel
The following parameters are available for this method:
- string
sessionKey
- string
luceneQuery
- A query written in the form of Lucene Query Parser Syntax - string
channelLabel
- Channel Label
The following return values are available for this method:
- array:
- struct - package overview
- int
id
- string
name
- string
summary
- string
description
- string
version
- string
release
- string
arch
- string
epoch
- string
provider
27.4. Method: name
Search the Lucene package indexes for all packages that match the given name.
The following parameters are available for this method:
- string
sessionKey
- string
name
- Package name to search
The following return values are available for this method:
- array:
- struct - package overview
- int
id
- string
name
- string
summary
- string
description
- string
version
- string
release
- string
arch
- string
epoch
- string
provider
27.5. Method: nameAndDescription
Search the Lucene package indexes for all packages that match the given query in name or description.
The following parameters are available for this method:
- string
sessionKey
- string
query
- Text to match in package name or description
The following return values are available for this method:
- array:
- struct - package overview
- int
id
- string
name
- string
summary
- string
description
- string
version
- string
release
- string
arch
- string
epoch
- string
provider
27.6. Method: nameAndSummary
Search the Lucene package indexes for all packages that match the given query in name or summary.
The following parameters are available for this method:
- string
sessionKey
- string
query
- Text to match in package name or summary
The following return values are available for this method:
- array:
- struct - package overview
- int
id
- string
name
- string
summary
- string
description
- string
version
- string
release
- string
arch
- string
epoch
- string
provider
Chapter 28. Namespace: preferences.locale
preferences.locale
28.1. Method: listLocales
Returns a list of all understood locales. Use results as input for setLocale
.
The following return values are available for this method:
- array:
- string - Locale code
28.2. Method: listTimeZones
Returns a list of all understood timezones. Use results as input for setTimeZone
.
The following return values are available for this method:
- array:
- struct - timezone
- int
time_zone_id
- Unique identifier for timezone - string
olson_name
- Name as identified by the Olson database
28.3. Method: setLocale
Set a user's locale.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - string
locale
- Locale to set (fromlistLocales
)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
28.4. Method: setTimeZone
Set a user's timezone.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - int
tzid
- Timezone ID (fromlistTimeZones
)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 29. Namespace: proxy
proxy
29.1. Method: activateProxy
Activates the proxy identified from the given client certificate e.g. systemid
file.
The following parameters are available for this method:
- string
systemid
-systemid
file - string
version
- Version of proxy to be registered
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
29.2. Method: createMonitoringScout
Create Monitoring Scout for proxy.
The following parameters are available for this method:
- string
systemid
-systemid
file
The following return values are available for this method:
- string
29.3. Method: deactivateProxy
Deactivates the proxy identified from the given client certificate e.g. systemid
file.
The following parameters are available for this method:
- string
systemid
-systemid
file
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
29.4. Method: isProxy
Test for proxy on the system identified by the given client certificate e.g. systemid
file.
The following parameters are available for this method:
- string
systemid
-systemid
file
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
29.5. Method: listAvailableProxyChannels
List available version of proxy channel for system identified from the given client certificate e.g. systemid
file.
The following parameters are available for this method:
- string
systemid
-systemid
file
The following return values are available for this method:
- array:
- string -
version
Chapter 30. Namespace: satellite
satellite
30.1. Method: getCertificateExpirationDate
Retrieves the certificate expiration date of the activated certificate.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- dateTime.iso8601
30.2. Method: isMonitoringEnabled
Indicates if monitoring is enabled on the Satellite.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- boolean
true
if monitoring is enabled
30.3. Method: isMonitoringEnabledBySystemId
Indicates if monitoring is enabled on the Satellite.
The following parameters are available for this method:
- string
systemid
-systemid
file
The following return values are available for this method:
- boolean
true
if monitoring is enabled
30.4. Method: listEntitlements
Lists all channel and system entitlements for the organization associated with the user executing the request.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- struct - channel or system entitlements
- array
system
- struct - system entitlement
- string
label
- string
name
- int
used_slots
- int
free_slots
- int
total_slots
- array
channel
- struct - channel entitlement
- string
label
- string
name
- int
used_slots
- int
free_slots
- int
total_slots
- int
used_flex
- int
free_flex
- int
total_flex
30.5. Method: listProxies
List the Proxies within the user's organization.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time the server completed a successful check-in
Chapter 31. Namespace: schedule
schedule
31.1. Method: archiveActions
Archive all actions in the given list.
The following parameters are available for this method:
- string
sessionKey
- array:
- int
action
- The action ID
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
31.2. Method: cancelActions
Cancel all actions in a given list. If provided an invalid action, the Satellite cancels none of the provided actions.
The following parameters are available for this method:
- string
sessionKey
- array:
- int
action
- The action ID
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
31.3. Method: deleteActions
Delete all archived actions in a given list.
The following parameters are available for this method:
- string
sessionKey
- array:
- int
action
- The action ID
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
31.4. Method: listAllActions
Returns a list of all actions. This includes completed, in progress, failed and archived actions.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - action
- int
id
- Action ID - string
name
- Action name - string
type
- Action type - string
scheduler
- The user that scheduled the action (optional) - dateTime.iso8601
earliest
- The action's earliest date and time for the action's next performance - int
completedSystems
- Number of systems that completed the action - int
failedSystems
- Number of systems that failed the action - int
inProgressSystems
- Number of systems in progress
31.5. Method: listArchivedActions
Returns a list of archived actions.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - action
- int
id
- Action ID - string
name
- Action name - string
type
- Action type - string
scheduler
- The user that scheduled the action (optional) - dateTime.iso8601
earliest
- The action's earliest date and time for the action's next performance - int
completedSystems
- Number of systems that completed the action - int
failedSystems
- Number of systems that failed the action - int
inProgressSystems
- Number of systems in progress
31.6. Method: listCompletedActions
Returns a list of successfully completed actions.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - action
- int
id
- Action ID - string
name
- Action name - string
type
- Action type - string
scheduler
- The user that scheduled the action (optional) - dateTime.iso8601
earliest
- The action's earliest date and time for the action's next performance - int
completedSystems
- Number of systems that completed the action - int
failedSystems
- Number of systems that failed the action - int
inProgressSystems
- Number of systems in progress
31.7. Method: listCompletedSystems
Returns a list of systems that have completed a specific action.
The following parameters are available for this method:
- string
sessionKey
- string
actionId
The following return values are available for this method:
- array:
- struct - system
- int
server_id
- string
server_name
- Server name - string
base_channel
- Base channel the server uses - dateTime.iso8601
timestamp
- The completion time for the action - string
message
- Optional message containing details on the execution of the action; for example, if the action failed, this contains the failure text
31.8. Method: listFailedActions
Returns a list of failed actions.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - action
- int
id
- Action ID - string
name
- Action name - string
type
- Action type - string
scheduler
- The user that scheduled the action (optional) - dateTime.iso8601
earliest
- The action's earliest date and time for the action's next performance - int
completedSystems
- Number of systems that completed the action - int
failedSystems
- Number of systems that failed the action - int
inProgressSystems
- Number of systems in progress
31.9. Method: listFailedSystems
Returns a list of systems that have failed a specific action.
The following parameters are available for this method:
- string
sessionKey
- string
actionId
The following return values are available for this method:
- array:
- struct - system
- int
server_id
- string
server_name
- Server name - string
base_channel
- Base channel the server uses - dateTime.iso8601
timestamp
- The completion time for the action - string
message
- Optional message containing details on the execution of the action; for example, if the action failed, this contains the failure text
31.10. Method: listInProgressActions
Returns a list of actions that are in progress.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - action
- int
id
- Action ID - string
name
- Action name - string
type
- Action type - string
scheduler
- The user that scheduled the action (optional) - dateTime.iso8601
earliest
- The action's earliest date and time for the action's next performance - int
completedSystems
- Number of systems that completed the action - int
failedSystems
- Number of systems that failed the action - int
inProgressSystems
- Number of systems in progress
31.11. Method: listInProgressSystems
Returns a list of systems that have a specific action in progress.
The following parameters are available for this method:
- string
sessionKey
- string
actionId
The following return values are available for this method:
- array:
- struct - system
- int
server_id
- string
server_name
- Server name - string
base_channel
- Base channel the server uses - dateTime.iso8601
timestamp
- The completion time for the action - string
message
- Optional message containing details on the execution of the action; for example, if the action failed, this contains the failure text
31.12. Method: rescheduleActions
Reschedule all actions in the given list.
The following parameters are available for this method:
- string
sessionKey
- array:
- int
action
- The action ID
- boolean
onlyFailed
-true
to only reschedule failed actions,false
to reschedule all
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 32. Namespace: sync.master
32.1. Method: addToMaster
Add a single organization to the list of those the specified Master has exported to this Slave.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the desired Master - struct - master-org details
- int
masterOrgId
- string
masterOrgName
- int
localOrgId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
32.2. Method: create
Create a new Master, known to this Slave.
The following parameters are available for this method:
- string
sessionKey
- string
label
- The Master's fully-qualified domain name
The following return values are available for this method:
- struct - IssMaster info
- int
id
- string
label
32.3. Method: delete
Remove the specified Master.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the Master to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
32.4. Method: getDefaultMaster
Return the current default master for this slave
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- struct - IssMaster info
- int
id
- string
label
- string
caCert
- boolean
isCurrentMaster
32.5. Method: getMaster
Get information about the specified Master.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the desired Master
The following return values are available for this method:
- struct - IssMaster info
- int
id
- string
label
32.6. Method: getMasterByLabel
Get information about the specified Master using a label to identify.
The following parameters are available for this method:
- string
sessionKey
- string
label
- Label of the desired Master
The following return values are available for this method:
- struct - IssMaster info
- int
id
- string
label
32.7. Method: getMasterOrgs
List all organizations the specified Master has exported to this Slave.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the desired Master
The following return values are available for this method:
- array:
- struct - IssMasterOrg info
- int
masterOrgId
- string
masterOrgName
- int
localOrgId
32.8. Method: getMasters
Get all Masters known by a Slave.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - IssMaster info
- int
id
- string
label
32.9. Method: makeDefault
Make the specified Master the default for this Slave's satellite synchronization.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the Master to make the default
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
32.10. Method: mapToLocal
Add a single organizations to the list of those the specified Master has exported to this Slave.
The following parameters are available for this method:
- string
sessionKey
- int
masterId
- ID of the desired Master - int
masterOrgId
- ID of the desired Master - int
localOrgId
- ID of the desired Master
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
32.11. Method: setCaCert
Set the Certifcate Authority for the specified Master.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the Master to affect - string
caCertFilename
- path to specified Master's CA cert
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
32.12. Method: setMasterOrgs
List all organizations the specified Master has exported to this Slave.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the desired Master - array:
- struct - master-org details
- int
masterOrgId
- string
masterOrgName
- int
localOrgId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
32.13. Method: unsetDefaultMaster
Make this slave have no default Master for Satellite synchronization.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
32.14. Method: update
Updates the label of the specified Master.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the Master to update - string
label
- Desired new label
The following return values are available for this method:
- struct - IssMaster info
- int
id
- string
label
Chapter 33. Namespace: sync.slave
33.1. Method: create
Create a new Slave, known to this Slave.
The following parameters are available for this method:
- string
sessionKey
- string
slave
- Slave's fully-qualified domain name - boolean
enabled
- Defines if the Slave is active and communicating - boolean
allowAllOrgs
- Defines whether to export all organizations to this slave
The following return values are available for this method:
- struct - IssSlave info
- int
id
- string
slave
- boolean
enabled
- boolean
allowAllOrgs
33.2. Method: delete
Remove the specified Slave
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the Slave to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
33.3. Method: getAllowedOrgs
Get all Slaves this Master knows.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the desired Slave
The following return values are available for this method:
- array:
- int - IDs of allowed organizations
33.4. Method: getSlave
Find a Slave by specifying its ID.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the desired Slave
The following return values are available for this method:
- struct - IssSlave info
- int
id
- string
slave
- boolean
enabled
- boolean
allowAllOrgs
33.5. Method: getSlaveByName
Find a Slave by specifying its fully-qualified domain name.
The following parameters are available for this method:
- string
sessionKey
- string
fqdn
- Domain name of the desired Slave
The following return values are available for this method:
- struct - IssSlave info
- int
id
- string
slave
- boolean
enabled
- boolean
allowAllOrgs
33.6. Method: getSlaves
Get all slaves this master knows.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - IssSlave info
- int
id
- string
slave
- boolean
enabled
- boolean
allowAllOrgs
33.7. Method: setAllowedOrgs
Get all the Slaves this Master knows.
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the desired Slave - array:
- int - List of revisions to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
33.8. Method: update
Updates the label of the specified Slave
The following parameters are available for this method:
- string
sessionKey
- int
id
- ID of the Slave to update - boolean
enabled
- Defines if the Slave is active and communicating - boolean
allowAllOrgs
- Defines whether to export all organizations to this slave
The following return values are available for this method:
- struct - IssSlave info
- int
id
- string
slave
- boolean
enabled
- boolean
allowAllOrgs
Chapter 34. Namespace: system
system
34.1. Method: addEntitlements
Add add-on entitlements to a server. Entitlements a server already has are quietly ignored.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- string -
entitlementLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.2. Method: addNote
Add a new note to the given server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
subject
- The note's subject - string
body
- Content of the note
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.3. Method: applyErrata
Schedules an action to apply errata updates to a system.
Note
system.scheduleApplyErrata(string sessionKey, int serverId, array[int errataId])
method.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- int -
errataId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.4. Method: comparePackageProfile
Compare a system's packages against a package profile. In the result returned, this_system
represents the server provided as an input and other_system
represents the profile provided as an input.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
profileLabel
The following return values are available for this method:
- array:
- struct - Package Metadata
- int
package_name_id
- string
package_name
- string
package_arch
- string
this_system
- Version of package on this system - string
other_system
- Version of package on the other system - int
comparison
0
- No difference1
- Package on this system only2
- Newer package version on this system3
- Package on other system only4
- Newer package version on other system
34.5. Method: comparePackages
Compares the packages installed on two systems.
The following parameters are available for this method:
- string
sessionKey
- int
thisServerId
- int
otherServerId
The following return values are available for this method:
- array:
- struct - Package Metadata
- int
package_name_id
- string
package_name
- string
package_arch
- string
this_system
- Version of package on this system - string
other_system
- Version of package on the other system - int
comparison
0
- No difference1
- Package on this system only2
- Newer package version on this system3
- Package on other system only4
- Newer package version on other system
34.6. Method: convertToFlexEntitlement
Converts the given list of systems for a given channel family to use the flex entitlement.
The following parameters are available for this method:
- string
sessionKey
- array:
- int
serverId
- string
channelFamilyLabel
The following return values are available for this method:
- int - The total the number of systems converted to use flex entitlement
34.7. Method: createPackageProfile
Create a new stored package profile from a systems installed package list.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
profileLabel
- string
description
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.8. Method: createSystemRecord
Creates a cobbler system record with the specified kickstart label
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
ksLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.9. Method: deleteCustomValues
Delete the custom values defined for the custom system information keys provided from the given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- string -
customInfoLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.10. Method: deleteGuestProfiles
Delete the specified list of guest profiles for a given host.
The following parameters are available for this method:
- string
sessionKey
- int
hostId
- array:
- string -
guestNames
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.11. Method: deleteNote
Deletes the given note from the server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- int
noteId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.12. Method: deleteNotes
Deletes all notes from the server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.13. Method: deletePackageProfile
Delete a package profile.
The following parameters are available for this method:
- string
sessionKey
- int
profileId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.14. Method: deleteSystem
Delete a system given its client certificate.
The following parameters are available for this method:
- string
systemid
-systemid
file
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.15. Method: deleteSystem
Delete a system given its server ID synchronously.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.16. Method: deleteSystems
Delete systems given a list of system IDs asynchronously.
The following parameters are available for this method:
- string
sessionKey
- array:
- int -
serverId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.17. Method: deleteTagFromSnapshot
Deletes tag from system snapshot.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
tagName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.18. Method: downloadSystemId
Get the system ID file for a given server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- string
34.19. Method: getConnectionPath
Get the list of proxies the given system connects through in order to reach the server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - proxy connection path details
- int
position
- Position of proxy in chain. The proxy the system connects directly to is listed in position 1 - int
id
- Proxy system ID - string
hostname
- Proxy host name
34.20. Method: getCpu
Gets the CPU information of a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - CPU
- string
cache
- string
family
- string
mhz
- string
flags
- string
model
- string
vendor
- string
arch
- string
stepping
- string
count
- int
socket_count
(if available)
34.21. Method: getCustomValues
Get the custom data values defined for the server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - custom value
- string - Custom info label
34.22. Method: getDetails
Get system details.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - server details
- int
id
- System ID - string
profile_name
- string
base_entitlement
- System's base entitlement label; eitherenterprise_entitled
orsw_mgr_entitled
- array
string
add-on_entitlements
- System's add-on entitlements- Labels including
monitoring_entitled
,provisioning_entitled
,virtualization_host
, orvirtualization_host_platform
- boolean
auto_update
-true
if system has auto errata updates enabled - string
release
- The Operating System release i.e.4AS
,5Server
, etc - string
address1
- string
address2
- string
city
- string
state
- string
country
- string
building
- string
room
- string
rack
- string
description
- string
hostname
- dateTime.iso8601
last_boot
- string
osa_status
- Eitherunknown
,offline
, oronline
- boolean
lock_status
-true
indicates the system is locked.false
indicates that the system is unlocked - string
virtualization
- Virtualization type for virtual guests only (optional)
34.23. Method: getDevices
Gets a list of devices for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - device
- string
device
(optional) - string
device_class
- IncludesCDROM
,FIREWIRE
,HD
,USB
,VIDEO
,OTHER
, etc - string
driver
- string
description
- string
bus
- string
pcitype
34.24. Method: getDmi
Gets the DMI information of a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - DMI
- string
vendor
- string
system
- string
product
- string
asset
- string
board
- string
bios_release
(optional) - string
bios_vendor
(optional) - string
bios_version
(optional)
34.25. Method: getEntitlements
Gets the entitlements for a given server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- string -
entitlement_label
34.26. Method: getEventHistory
Returns a list of history items associated with the system, ordered from newest to oldest. Note that the details might be empty for events scheduled against the system (as compared to instant). For more information about such events, see the system.listSystemEvents
operation.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - History Event
- dateTime.iso8601
completed
- Date the event occurred (optional) - string
summary
- Summary of the event - string
details
- Details of the event
34.27. Method: getId
Get system IDs and last check-in information for the given system name.
The following parameters are available for this method:
- string
sessionKey
- string
systemName
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Time of server's last successful check-in
34.28. Method: getMemory
Gets the memory information for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - memory
- int
ram
- The amount of physical memory in MB - int
swap
- The amount of swap space in MB
34.29. Method: getName
Get system name and last check-in information for the given system ID.
The following parameters are available for this method:
- string
sessionKey
- string
serverId
The following return values are available for this method:
- struct - name info
- int
id
- Server ID - string
name
- Server name - dateTime.iso8601
last_checkin
- Time of server's last successful check-in
34.30. Method: getNetwork
Get the addresses and hostname for a given server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - network info
- string
ip
- IPv4 address of server - string
ip6
- IPv6 address of server - string
hostname
- Hostname of server
34.31. Method: getNetworkDevices
Returns the network devices for the given server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - network device
- string
ip
- IP address assigned to this network device - string
interface
- Network interface assigned to device e.g. eth0 - string
netmask
- Network mask assigned to device - string
hardware_address
- Hardware Address of device. - string
module
- Network driver used for this device. - string
broadcast
- Broadcast address for device. - array
ipv6
- List of IPv6 addresses - array:
- struct - ipv6 address
- string
address
- IPv6 address of this network device - string
netmask
- IPv6 netmask of this network device - string
scope
- IPv6 address scope
34.32. Method: getRegistrationDate
Returns the date the system was registered.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- dateTime.iso8601 - The date the system was registered in local time
34.33. Method: getRelevantErrata
Returns a list of all errata that are relevant to the system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
update_date
- Erratum update date - string
advisory_synopsis
- Summary of the erratum. - string
advisory_type
- Type label, such as "Security", "Bug Fix", or "Enhancement" - string
advisory_name
- Name, such as RHSA
34.34. Method: getRelevantErrataByType
Returns a list of all errata of the specified type relevant to the system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
advisoryType
- Type of advisory; one of of the following: "Security Advisory", "Product Enhancement Advisory", or "Bug Fix Advisory".
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
update_date
- Erratum update date - string
advisory_synopsis
- Summary of the erratum. - string
advisory_type
- Type label, such as "Security", "Bug Fix", or "Enhancement" - string
advisory_name
- Name, such as RHSA
34.35. Method: getRunningKernel
Returns the running kernel of the given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- string
34.36. Method: getScriptActionDetails
Returns script details for script run actions
The following parameters are available for this method:
- string
sessionKey
- int
actionId
- ID of the script run action
The following return values are available for this method:
- struct - Script details
- int
id
- Action IDstringcontent
- Script contentstringrun_as_user
- Run as userstringrun_as_group
- Run as groupinttimeout
- Timeout in secondsarray:- struct - script result
- int
serverId
- ID of the server the script runs - dateTime.iso8601
startDate
- Time script began execution - dateTime.iso8601
stopDate
- Time script stopped execution - int
returnCode
- Script execution return code - string
output
- Output of the script (base64 encoded according to theoutput_enc64
attribute) - boolean
output_enc64
- Identifies base64 encoded output
- result
34.37. Method: getScriptResults
Fetch results from a script execution. Returns an empty array if no results are yet available.
The following parameters are available for this method:
- string
sessionKey
- int
actionId
- ID of the script run action
The following return values are available for this method:
- array:
- struct - script result
- int
serverId
- ID of the server the script runs - dateTime.iso8601
startDate
- Time script began execution - dateTime.iso8601
stopDate
- Time script stopped execution - int
returnCode
- Script execution return code - string
output
- Output of the script (base64 encoded according to theoutput_enc64
attribute) - boolean
output_enc64
- Identifies base64 encoded output
34.38. Method: getSubscribedBaseChannel
Provides the base channel of a given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - channel
- int
id
- string
name
- string
label
- string
arch_name
- string
summary
- string
description
- string
checksum_label
- dateTime.iso8601
last_modified
- string
maintainer_name
- string
maintainer_email
- string
maintainer_phone
- string
support_policy
- string
gpg_key_url
- string
gpg_key_id
- string
gpg_key_fp
- dateTime.iso8601
yumrepo_last_sync
(optional) - string
end_of_life
- string
parent_channel_label
- string
clone_original
- array:
- struct - contentSources
- int
id
- string
label
- string
sourceUrl
- string
type
34.39. Method: getSystemCurrencyMultipliers
Get the system currency score multipliers.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- Map of score multipliers
34.40. Method: getSystemCurrencyScores
Get the System Currency scores for all servers the user has access.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system currency
- int
sid
- int - critical security errata count
- int - important security errata count
- int - moderate security errata count
- int - low security errata count
- int - bug fix errata count
- int - enhancement errata count
- int - system currency score
34.41. Method: getUnscheduledErrata
Provides an array of errata applicable to a given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - errata
- int
id
- Errata ID - string
date
- Erratum creation date - string
advisory_type
- Type of the advisory - string
advisory_name
- Name of the advisory - string
advisory_synopsis
- Summary of the erratum
34.42. Method: getUuid
Get the UUID from the given system ID.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- string
34.43. Method: getVariables
Lists kickstart variables set in the system record for the specified server.
Note
system.createSystemRecord
. To create a system record in the Web UI navigate to System → Specified System → Provisioning → Select a Kickstart profile → Create Cobbler System Record.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - System kickstart variables
- boolean
netboot
- netboot enabled - array - kickstart variables
- struct - kickstart variable
- string
key
- string or int
value
34.44. Method: isNvreInstalled
Check if the package with the given NVRE is installed on given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
name
- Package name - string
version
- Package version - string
release
- Package release
The following return values are available for this method:
1
if package exists,0
if not, and an exception is thrown if an error occurs
34.45. Method: isNvreInstalled
Is the package with the given NVRE installed on given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
name
- Package name - string
version
- Package version - string
release
- Package release - string
epoch
- Package epoch
The following return values are available for this method:
1
if package exists,0
if not, and an exception is thrown if an error occurs
34.46. Method: listActivationKeys
List the activation keys registered with the system. An empty list is returned if an activation key is not used during registration.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- string -
key
34.47. Method: listActiveSystems
Returns a list of active servers visible to the user.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.48. Method: listActiveSystemsDetails
Given a list of server IDs, returns a list of active servers' details visible to the user.
The following parameters are available for this method:
- string
sessionKey
- array:
- int -
serverIds
The following return values are available for this method:
- array:
- struct - server details
- int
id
- The server's ID - string
name
- The server's name - dateTime.iso8601
last_checkin
- Last time server successfully checked in (in UTC) - int
ram
- The amount of physical memory in MB. - int
swap
- The amount of swap space in MB. - struct
network_devices
- The server's network devices- struct - network device
- string
ip
- IP address assigned to this network device - string
interface
- Network interface assigned to device e.g. eth0 - string
netmask
- Network mask assigned to device - string
hardware_address
- Hardware Address of device. - string
module
- Network driver used for this device. - string
broadcast
- Broadcast address for device. - array
ipv6
- List of IPv6 addresses- array:
- struct - ipv6 address
- string
address
- IPv6 address of this network device - string
netmask
- IPv6 netmask of this network device - string
scope
- IPv6 address scope
- struct
dmi_info
- The server's dmi info- struct - DMI
- string
vendor
- string
system
- string
product
- string
asset
- string
board
- string
bios_release
- (optional) - string
bios_vendor
- (optional) - string
bios_version
- (optional)
- struct
cpu_info
- The server's cpu info- struct - CPU
- string
cache
- string
family
- string
mhz
- string
flags
- string
model
- string
vendor
- string
arch
- string
stepping
- string
count
- int
socket_count
(if available)"
- array
subscribed_channels
- List of subscribed channels- array:
- struct - channel
- int
channel_id
- The channel ID - string
channel_label
- The channel label
- array
active_guest_system_IDs
- List of virtual guest system IDs for active guests- array:
- int
guest_id
- The guest's system ID
34.49. Method: listAdministrators
Returns a list of users that can administer the system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - user
- int
id
- string
login
- string
login_uc
- Upper case version of the login - boolean
enabled
-true
if user is enabled,false
if the user is disabled
34.50. Method: listAllInstallablePackages
Get the list of all installable packages for a given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- int
id
- string
arch_label
34.51. Method: listBaseChannels
Returns a list of subscribable base channels.
Note
listSubscribableBaseChannels(string sessionKey, int serverId)
method.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - channel
- int
id
- Base channel ID - string
name
- Name of channel - string
label
- Label of channel - int
current_base
-1
indicates it is the current base channel
34.52. Method: listChildChannels
Returns a list of subscribable child channels. This only shows channels the system is not currently subscribed.
Note
listSubscribableChildChannels(string sessionKey, int serverId)
method.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - child channel
- int
id
- string
name
- string
label
- string
summary
- string
has_license
- string
gpg_key_url
34.53. Method: listDuplicatesByHostname
List duplicate systems by hostname.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - Duplicate Group
- string
hostname
- array
systems
- struct - system
- int
systemId
- string
systemName
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.54. Method: listDuplicatesByIp
List duplicate systems by IP Address.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - Duplicate Group
- string
ip
- array
systems
- struct - system
- int
systemId
- string
systemName
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.55. Method: listDuplicatesByMac
List duplicate systems by MAC Address.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - Duplicate Group
- string
mac
- array
systems
- struct - system
- int
systemId
- string
systemName
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.56. Method: listEligibleFlexGuests
List eligible flex guests accessible to the user.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel family system group
- int
id
- string
label
- string
name
- array:
- int -
systems
34.57. Method: listExtraPackages
List extra packages for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- Returned only if non-zero - string
arch
- date
installtime
- Returned only if known
34.58. Method: listFlexGuests
List flex guests accessible to the user
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - channel family system group
- int
id
- string
label
- string
name
- array:
- int -
systems
34.59. Method: listGroups
List the available groups for a given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - system group
- int
id
- Server group ID - int
subscribed
-1
if the given server is subscribed to this server group,0
otherwise - string
system_group_name
- Name of the server group - string
sgid
- Server group ID (deprecated)
34.60. Method: listInactiveSystems
Lists systems that have been inactive for the default period of inactivity.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.61. Method: listInactiveSystems
Lists systems that have been inactive for the specified number of days.
The following parameters are available for this method:
- string
sessionKey
- int
days
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.62. Method: listLatestAvailablePackage
Get the latest available version of a package for each system.
The following parameters are available for this method:
- string
sessionKey
- array:
- int -
serverId
- string
packageName
The following return values are available for this method:
- array:
- struct - system
- int
id
- server ID - string
name
- server name - struct
package
- package structure- struct - package
- int
id
- string
name
- string
version
- string
release
- string
epoch
- string
arch
34.63. Method: listLatestInstallablePackages
Get the list of latest installable packages for a given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- int
id
- string
arch_label
34.64. Method: listLatestUpgradablePackages
Get the list of latest upgradable packages for a given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
arch
- string
from_version
- string
from_release
- string
from_epoch
- string
to_version
- string
to_release
- string
to_epoch
- string
to_package_id
34.65. Method: listNewerInstalledPackages
Given a package name, version, release, and epoch, returns the list of packages installed on the system with the same name that are newer.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
name
- Package name - string
version
- Package version - string
release
- Package release - string
epoch
- Package epoch
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
34.66. Method: listNotes
Provides a list of notes associated with a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - note details
- int
id
- string
subject
- Subject of the note - string
note
- Contents of the note - int
system_id
- The ID of the system associated with the note - string
creator
- Creator of the note - date
updated
- Date of the last note update
34.67. Method: listOlderInstalledPackages
Given a package name, version, release, and epoch, returns the list of packages installed on the system with the same name that are older.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
name
- Package name - string
version
- Package version - string
release
- Package release - string
epoch
- Package epoch
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
34.68. Method: listOutOfDateSystems
Returns list of systems needing package updates.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.69. Method: listPackageProfiles
List the package profiles in this organization
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - package profile
- int
id
- string
name
- string
channel
34.70. Method: listPackages
List the installed packages for a given system. The attribute installtime
is returned since API version 10.10.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - package
- int
id
- string
name
- string
version
- string
release
- string
epoch
- string
arch
- date
installtime
- returned only if known
34.71. Method: listPackagesFromChannel
Provides a list of packages installed on a system that are also contained in the given channel. The installed package list does not include architecture information before Red Hat Enterprise Linux 5, so it is architecture unaware. Red Hat Enterprise Linux 5 systems do upload the architecture information, and thus are architecture aware.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
channelLabel
The following return values are available for this method:
- array:
- struct - package
- string
name
- string
version
- string
release
- string
epoch
- int
id
- string
arch_label
- string
path
- The path on that file system that the package resides - string
provider
- The provider of the package, determined by its GPG key - dateTime.iso8601
last_modified
34.72. Method: listPhysicalSystems
Returns a list of all physical servers visible to the user.
The following paramaters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server successfully checked in
34.73. Method: listSubscribableBaseChannels
Returns a list of subscribable base channels.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - channel
- int
id
- Base channel ID - string
name
- Name of channel - string
label
- Label of channel - int
current_base
-1
indicates it is the current base channel
34.74. Method: listSubscribableChildChannels
Returns a list of subscribable child channels. This only shows channels the system is not currently subscribed.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - child channel
- int
id
- string
name
- string
label
- string
summary
- string
has_license
- string
gpg_key_url
34.75. Method: listSubscribedChildChannels
Returns a list of subscribed child channels.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - channel
- int
id
- string
name
- string
label
- string
arch_name
- string
summary
- string
description
- string
checksum_label
- dateTime.iso8601
last_modified
- string
maintainer_name
- string
maintainer_email
- string
maintainer_phone
- string
support_policy
- string
gpg_key_url
- string
gpg_key_id
- string
gpg_key_fp
- dateTime.iso8601
yumrepo_last_sync
(optional) - string
end_of_life
- string
parent_channel_label
- string
clone_original
- array:
- struct - contentSources
- int
id
- string
label
- string
sourceUrl
- string
type
34.76. Method: listSystemEvents
List all system events for given server. This includes all events for the server since registration. This might require the caller to filter the results to fetch the desired events.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- ID of system
The following return values are available for this method:
- array:
- struct - action
- int
failed_count
- Number of times action failed - string
modified
- Date modified (deprecated by modified_date) - dateTime.iso8601
modified_date
- Date modified - string
created
- Date created. (deprecated by created_date) - dateTime.iso8601
created_date
- Date created - string
action_type
- int
successful_count
- Number of times action was successful - string
earliest_action
- Earliest date this action will occur - int
archived
- If this action is archived. (1
or0
) - string
scheduler_user
- available only if concrete user has scheduled the action - string
prerequisite
- Pre-requisite action (optional) - string
name
- Name of this action - int
id
- ID of this action - string
version
- Version of action - string
completion_time
- The date and time the event was completed; format is YYYY-MM-dd hh:mm:ss.ms e.g. 2007-06-04 13:58:13.0 (optional) (deprecated by completed_date) - dateTime.iso8601
completed_date
- The date and time the event was completed (optional) - string
pickup_time
- The date and time of the action pick-up. Format is YYYY-MM-dd hh:mm:ss.ms e.g. 2007-06-04 13:58:13.0 (optional) (deprecated by pickup_date) - dateTime.iso8601
pickup_date
- The date and time of the action pick-up. (optional) - string
result_msg
- The result string after the action executes on the client machine (optional) - array
additional_info
- This array contains additional information for the event, if available- struct - info
- string
detail
- The detail provided depends on the specific event; for example, for a package event, this is the package name; for an errata event, this is the advisory name and synopsis; for a config file event, this is the path and optional revision information - string
result
- The result (if included) depends on the specific event; for example, for a package or errata event, no result is included; for a config file event, the result might include an error (if one occurred, such as the file was missing); in the case of a config file comparison, it might include the differenes found
34.77. Method: listSystems
Returns a list of all servers visible to the user.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.78. Method: listSystemsWithExtraPackages
List systems with extra packages.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- int
id
- System ID - string
name
- System profile name - int
extra_pkg_count
- Extra packages count
34.79. Method: listSystemsWithPackage
Lists the systems that have the given installed package.
The following parameters are available for this method:
- string
sessionKey
- int
pid
- The package ID
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.80. Method: listSystemsWithPackage
Lists the systems that have the given installed package
The following parameters are available for this method:
- string
sessionKey
- string
name
- The package name - string
version
- The package version - string
release
- The package release
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.81. Method: listUngroupedSystems
List systems that are not associated with any system groups.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- Server ID - string
name
34.82. Method: listUserSystems
List systems for a given user.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.83. Method: listUserSystems
List systems for the logged in user.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.84. Method: listVirtualGuests
Lists the virtual guests for a given virtual host.
The following parameters are available for this method:
- string
sessionKey
- int
sid
- The virtual host's ID
The following return values are available for this method:
- array:
- struct - virtual system
- int
id
- string
name
- string
guest_name
- The virtual guest name as provided by the virtual host - dateTime.iso8601
last_checkin
- Last successful server check-in - string
uuid
34.85. Method: listVirtualHosts
Lists the virtual hosts visible to the user
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.86. Method: obtainReactivationKey
Obtains a reactivation key for this server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- string
34.87. Method: obtainReactivationKey
Obtains a reactivation key for this server.
The following parameters are available for this method:
- string
systemid
-systemid
file
The following return values are available for this method:
- string
34.88. Method: provisionSystem
Provision a system using the specified kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- ID of the system to be provisioned - string
profileName
- Kickstart profile to use
The following return values are available for this method:
- int - ID of the action scheduled, otherwise exception thrown on error
34.89. Method: provisionSystem
Provision a system using the specified kickstart profile.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- ID of the system to be provisioned - string
profileName
- Kickstart profile to use - dateTime.iso8601
earliestDate
The following return values are available for this method:
- int - ID of the action scheduled, otherwise exception thrown on error
34.90. Method: provisionVirtualGuest
Provision a guest on the host specified. Defaults to: memory=512MB
, vcpu=1
, storage=3GB
, mac_address=random
.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- ID of host to provision guest - string
guestName
- string
profileName
- Kickstart profile to use
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.91. Method: provisionVirtualGuest
Provision a guest on the host specified. This schedules the guest for creation and begins the provisioning process when the host checks in. If OSAD is enabled, provisioning begins immediately. Defaults to mac_address=random
.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- ID of host to provision guest - string
guestName
- string
profileName
- Kickstart profile to use - int
memoryMb
- Memory to allocate to the guest - int
vcpus
- Number of virtual CPUs to allocate to the guest - int
storageGb
- Size of the guest's disk image
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.92. Method: provisionVirtualGuest
Provision a guest on the host specified. This schedules the guest for creation and begins the provisioning process when the host checks in. If OSAD is enabled, provisioning begins immediately.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- ID of host to provision guest - string
guestName
- string
profileName
- Kickstart Profile to use - int
memoryMb
- Memory to allocate to the guest - int
vcpus
- Number of virtual CPUs to allocate to the guest - int
storageGb
- Size of the guest's disk image - string
macAddress
- macAddress to give the guest's virtual networking hardware
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.93. Method: removeEntitlements
Remove add-on entitlements from a server. Entitlements a server does not have are quietly ignored.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- string -
entitlement_label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.94. Method: scheduleApplyErrata
Schedules an action to apply errata updates to multiple systems.
The following parameters are available for this method:
- string
sessionKey
- array:
- int
serverId
- array:
- int
errataId
The following return values are available for this method:
- array:
- int
actionId
- The action ID of the scheduled action
34.95. Method: scheduleApplyErrata
Schedules an action to apply errata updates to multiple systems at a given date and time.
The following parameters are available for this method:
- string
sessionKey
- array:
- int -
serverId
- array:
- int -
errataId
- dateTime.iso8601
earliestOccurrence
The following return values are available for this method:
- array:
- int -
actionId
34.96. Method: scheduleApplyErrata
Schedules an action to apply errata updates to a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- int -
errataId
The following return values are available for this method:
- array:
- int -
actionId
34.97. Method: scheduleApplyErrata
Schedules an action to apply errata updates to a system at a given date and time.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- int -
errataId
- dateTime.iso8601
earliestOccurrence
The following return values are available for this method:
- array:
- int -
actionId
34.98. Method: scheduleGuestAction
Schedules a guest action for the specified virtual guest for a given date and time.
The following parameters are available for this method:
- string
sessionKey
- int
sid
- The system IG of the guest - string
state
- One of the following actions:start
,suspend
,resume
,restart
, orshutdown
- dateTime.iso8601
date
- The date and time to schedule the action
The following return values are available for this method:
- int
actionId
- The action ID of the scheduled action
34.99. Method: scheduleGuestAction
Schedules a guest action for the specified virtual guest for the current time.
The following parameters are available for this method:
- string
sessionKey
- int
sid
- The system Id of the guest - string
state
- One of the following actions:start
,suspend
,resume
,restart
, orshutdown
The following return values are available for this method:
- int
actionId
- The action ID of the scheduled action
34.100. Method: scheduleHardwareRefresh
Schedule a hardware refresh for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- dateTime.iso8601
earliestOccurrence
The following return values are available for this method:
- int
actionId
- The action ID of the scheduled action
34.101. Method: schedulePackageInstall
Schedule package installation for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- int -
packageId
- dateTime.iso8601
earliestOccurrence
The following return values are available for this method:
- int
actionId
- The action ID of the scheduled action
34.102. Method: schedulePackageRefresh
Schedule a package list refresh for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- dateTime.iso8601
earliestOccurrence
The following return values are available for this method:
- int - ID of the action scheduled, otherwise exception thrown on error
34.103. Method: schedulePackageRemove
Schedule package removal for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- int -
packageId
- dateTime.iso8601
earliestOccurrence
The following return values are available for this method:
- int - ID of the action scheduled, otherwise exception thrown on error
34.104. Method: scheduleReboot
Schedule a reboot for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- dateTime.iso860 earliestOccurrence
The following return values are available for this method:
- int
actionId
- The action ID of the scheduled action
34.105. Method: scheduleScriptRun
Schedule a script to run.
The following parameters are available for this method:
- string
sessionKey
- array:
- int - System IDs of the servers to run the script
- string
username
- User to run script - string
groupname
- Group to run script - int
timeout
- Seconds to allow the script to run before timeout - string
script
- Contents of the script to run - dateTime.iso8601
earliestOccurrence
- Earliest the script can run
The following return values are available for this method:
- int - ID of the script run action. Used to fetch results with
system.getScriptResults
34.106. Method: scheduleScriptRun
Schedule a script to run.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- ID of the server to run the script - string
username
- User to run script - string
groupname
- Group to run script - int
timeout
- Seconds to allow the script to run before timeout - string
script
- Contents of the script to run - dateTime.iso8601
earliestOccurrence
- Earliest the script can run
The following return values are available for this method:
- int - ID of the script run action. Used to fetch results with
system.getScriptResults
34.107. Method: scheduleSyncPackagesWithSystem
Synchronize packages from a source system to a target.
The following parameters are available for this method:
- string
sessionKey
- int
targetServerId
- Target system to apply package changes - int
sourceServerId
- Source system to retrieve package state - array:
- int -
packageId
- Package IDs to be synchronized
- dateTime.iso8601
date
- Date to schedule action
The following return values are available for this method:
- int
actionId
- The action ID of the scheduled action
34.108. Method: searchByName
Returns a list of system IDs whose name matches the supplied regular expression.
The following parameters are available for this method:
- string
sessionKey
- string
regexp
- A regular expression
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last successful server check-in
34.109. Method: setBaseChannel
Assigns the server to a new baseChannel.
Note
system.setBaseChannel(string sessionKey, int serverId, string channelLabel)
method.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- int
channelId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.110. Method: setBaseChannel
Assigns the server to a new base channel. If the user provides an empty string for the channelLabel
, the current base channel and all child channels are removed from the system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
channelLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.111. Method: setChildChannels
Subscribe the given server to the child channels provided. This method will unsubscribe the server from any child channels currently subscribed, but that are not included in the list. The user provides either a list of channel IDs (int) or a list of channel labels (string) as input.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- int (deprecated) or string -
channelId
(deprecated) orchannelLabel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.112. Method: setCustomValues
Set custom values for the specified server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- struct - Map of custom labels to custom values
- string - Custom information label
- string
value
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.113. Method: setDetails
Set server details. All arguments are optional and are only modified if included in the struct.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- ID of server to look up details - struct - server details
- string
profile_name
- System's profile name - string
base_entitlement
- System's base entitlement labe; eitherenterprise_entitled
orsw_mgr_entitled
- boolean
auto_errata_update
-true
if system has auto errata updates enabled - string
description
- System description - string
address1
- System's address line 1 - string
address2
- System's address line 2 - string
city
- string
state
- string
country
- string
building
- string
room
- string
rack
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.114. Method: setGroupMembership
Set a servers membership in a given group.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- int
serverGroupId
- boolean
member
-1
to assign the given server to the given server group,0
to remove the given server from the given server group
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.115. Method: setGuestCpus
Schedule an action of a guest's host to set that guest's CPU allocation.
The following parameters are available for this method:
- string
sessionKey
- int
sid
- The guest's system ID - int
numOfCpus
- The number of virtual CPUs to allocate to the guest
The following return values are available for this method:
- int
actionID
- The action ID for the schedule action on the host system
34.116. Method: setGuestMemory
Schedule an action of a guest's host to set that guest's memory allocation
The following parameters are available for this method:
- string
sessionKey
- int
sid
- The guest's system ID - int
memory
- The amount of memory to allocate to the guest
The following return values are available for this method:
- int
actionID
- The action ID for the schedule action on the host system
34.117. Method: setLockStatus
Set server lock status.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- boolean
lockStatus
-true
to lock the system,false
to unlock the system
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.118. Method: setPrimaryInterface
Sets new primary network interface.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
interfaceName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.119. Method: setProfileName
Set the profile name for the server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
name
- Name of the profile
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.120. Method: setVariables
Sets a list of kickstart variables in the cobbler system record for the specified server.
Note
system.createSystemRecord
. To create a system record in the Web UI navigate to System → Specified System → Provisioning → Select a Kickstart profile → Create Cobbler System Record.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- boolean
netboot
- array:
- struct - kickstart variable
- string
key
- string or int
value
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.121. Method: tagLatestSnapshot
Tags latest system snapshot.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
tagName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.122. Method: upgradeEntitlement
Adds an entitlement to a given server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
entitlementName
- One of:enterprise_entitled
,provisioning_entitled
,monitoring_entitled
,nonlinux_entitled
,virtualization_host
, orvirtualization_host_platform
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
34.123. Method: whoRegistered
Returns information about the user who registered the system
The following parameters are available for this method:
- string
sessionKey
- int
sid
- ID of the system in question
The following return values are available for this method:
- struct - user
- int
id
- string
login
- string
login_uc
- Upper case version of the login - boolean
enabled
-true
if user is enabled,false
if the user is disabled
Chapter 35. Namespace: system.config
35.1. Method: addChannels
Given a list of servers and configuration channels, this method appends the configuration channels to either the top or the bottom, depending of the user's choice, of a system's subscribed configuration channels list. The list maintains the ordering of the configuration channels provided while adding. If the has previous subscribed to one of the configuration channels in the "add" list, the subscribed channel is ranked to the appropriate place.
The following parameters are available for this method:
- string
sessionKey
- array:
- int - IDs of the systems to add the channels
- array:
- string - List of configuration channel labels in the ranked order
- boolean
addToTop
true
to prepend the given channels list to the top of the configuration channels list of a serverfalse
to append the given channels list to the bottom of the configuration channels list of a server
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
35.2. Method: createOrUpdatePath
Create a new text or binary file or directory with the given path, or update an existing path on a server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
path
- The configuration file/directory path - boolean
isDir
true
if the path is a directoryfalse
if the path is a file
- struct - path info
- string
contents
- Contents of the file (text or base64 encoded if binary) (only for non-directories) - boolean
contents_enc64
- Identifies base64 encoded content (default: disabled, only for non-directories) - string
owner
- Owner of the file or directory - string
group
- Group name of the file or directory - string
permissions
- Octal file or directory permissions e.g. 644 - string
macro-start-delimiter
- Config file macro end delimiter. Use null or empty string to accept the default (only for non-directories) - string
macro-end-delimiter
- Config file macro end delimiter. Use null or empty string to accept the default (only for non-directories) - string
selinux_ctx
- SELinux context (optional) - int
revision
- Next revision number, auto increment for null - boolean
binary
- Mark the binary content, iftrue
, base64 encoded content is expected (only for non-directories)
- int
commitToLocal
1
to commit configuration files to the system's local override configuration channel0
to commit configuration files to the system's sandbox configuration channel
The following return values are available for this method:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File path - string
target_path
- Symbolic link target file path; present for symbolic links only - string
channel
- Channel name - string
contents
- File contents (base64 encoded according to thecontents_enc64
attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File Owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File Permissions; present for files or directories only (deprecated) - string
permissions_mode
- File Permissions; present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only - string
md5
- File's MD5 signature; present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only
35.3. Method: createOrUpdateSymlink
Create a new symbolic link with the given path, or update an existing path.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string
path
- The configuration file or directory path - struct - path info
- string
target_path
- The target path for the symbolic link - string
selinux_ctx
- SELinux security context (optional) - int
revision
- Next revision number, auto-increment for null
- int
commitToLocal
1
to commit configuration files to the system's local override configuration channel0
to commit configuration files to the system's sandbox configuration channel
The following return values are available for this method:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File path - string
target_path
- Symbolic link target file path; present for Symbolic links only. - string
channel
- Channel name - string
contents
- File contents (base64 encoded according to thecontents_enc64
attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File Owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File Permissions (Deprecated); present for files or directories only - string
permissions_mode
- File Permissions; present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only. - string
md5
- File's MD5 signature; present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only
35.4. Method: deleteFiles
Removes file paths from a local or sandbox channel of a server.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- string -
paths
to remove.
- boolean
deleteFromLocal
true
to delete configuration file paths from the system's local override configuration channelfalse
to delete configuration file paths from the system's sandbox configuration channel
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
35.5. Method: deployAll
Schedules a deploy action for all the configuration files on the given list of systems.
The following parameters are available for this method:
- string
sessionKey
- array:
- int -
id
of the systems to schedule configuration files deployment
- dateTime.iso8601
date
- Earliest date for the deploy action.
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
35.6. Method: listChannels
List all global configuration channels associated to a system in the order of their ranking.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - Configuration Channel information
- int
id
- int
orgId
- string
label
- string
name
- string
description
- struct
configChannelType
- struct - Configuration Channel Type information
- int
id
- string
label
- string
name
- int
priority
35.7. Method: listFiles
Return the list of files in a given channel.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- int
listLocal
1
to return configuration files in the system's local override configuration channel0
to return configuration files in the system's sandbox configuration channel
The following return values are available for this method:
- array:
- struct - Configuration File information
- string
type
- file
- directory
- symlink
- string
path
- File Path - string
channel_label
- The label of the central configuration channel that has this file; this entry only shows if a central channel has not overwritten the file - struct
channel_type
- struct - Configuration channel type information
- int
id
- string
label
- string
name
- int
priority
- dateTime.iso8601
last_modified
- Last modified date
35.8. Method: lookupFileInfo
Given a list of paths and a server, this method returns details about the latest revisions of the paths.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- array:
- string - Paths to query
- int
searchLocal
1
to search configuration file paths in the system's local override configuration or systems subscribed central channels0
to search configuration file paths in the system's sandbox configuration channel
The following return values are available for this method:
- array:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File path - string
target_path
- Symbolic link target file path; present for symbolic links only. - string
channel
- Channel name - string
contents
- File contents (base64 encoded according to thecontents_enc64
attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File Owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File Permissions ; present for files or directories only (deprecated) - string
permissions_mode
- File Permissions; present for files or directories only - string
selinux_ctx
- SELinux context (optional) - boolean
binary
-true
orfalse
; present for files only - string
md5
- File's MD5 signature; present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file; present for text files only - string
macro-end-delimiter
- Macro end delimiter for a config file; present for text files only
35.9. Method: removeChannels
Remove config channels from the given servers.
The following parameters are available for this method:
- string
sessionKey
- array:
- int - The IDs of the systems to remove configuration channels
- array:
- string - List of configuration channel labels to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
35.10. Method: setChannels
Replace the existing set of config channels on the given servers. Channels are ranked according to their order in the configChannelLabels
array.
The following parameters are available for this method:
- string
sessionKey
- array:
- int - IDs of the systems to set the channels
- array:
- string - List of configuration channel labels in the ranked order
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Chapter 36. Namespace: system.crash
system.crash
36.1. Method: createCrashNote
Create a crash note.
The following parameters are available for this method:
- string
sessionKey
- int
crashId
- string
subject
- string
details
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
36.2. Method: deleteCrash
Delete a crash with given crash ID.
The following parameters are available for this method:
- string
sessionKey
- int
crashId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
36.3. Method: deleteCrashNote
Delete a crash note.
The following parameters are available for this method:
- string
sessionKey
- int
crashNoteId
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
36.4. Method: getCrashCountInfo
Return date of last software crashes report for given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- struct - Crash Count Information
- int
total_count
- Total number of software crashes for a system - int
unique_count
- Number of unique software crashes for a system - dateTime.iso8601
last_report
- Date of the last software crash report
36.5. Method: getCrashFile
Download a crash file.
The following parameters are available for this method:
- string
sessionKey
- int
crashFileId
The following return values are available for this method:
- base64 - base64 encoded crash file
36.6. Method: getCrashFileUrl
Get a crash file download URL.
The following parameters are available for this method:
- string
sessionKey
- int
crashFileId
The following return values are available for this method:
- string - The crash file download URL
36.7. Method: getCrashNotesForCrash
List crash notes for crash.
The following parameters are available for this method:
- string
sessionKey
- int
crashId
The following return values are available for this method:
- array:
- struct - crashNote
- int
id
- string
subject
- string
details
- string
updated
36.8. Method: getCrashOverview
Get software crash overview.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - crash
- string
uuid
- Crash UUID - string
component
- Package component (set if unique and non-empty) - int
crash_count
- Number of crashes occurred - int
system_count
- Number of systems affected - dateTime.iso8601
last_report
- Last crash occurence
36.9. Method: getCrashesByUuid
List software crashes with given UUID.
The following parameters are available for this method:
- string
sessionKey
- string
uuid
The following return values are available for this method:
- array:
- struct - crash
- int
server_id
- ID of the server the crash occurred - int
crash_id
- ID of the crash with given UUID - int
crash_count
- Number of times the crash with given UUID occurred - string
crash_component
- Crash component - dateTime.iso8601
last_report
- Last crash occurence
36.10. Method: listSystemCrashFiles
Return list of crash files for given crash ID.
The following parameters are available for this method:
- string
sessionKey
- int
crashId
The following return values are available for this method:
- array:
- struct - crashFile
- int
id
- string
filename
- string
path
- int
filesize
- boolean
is_uploaded
- date
created
- date
modified
36.11. Method: listSystemCrashes
Return list of software crashes for a system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - crash
- int
id
- string
crash
- string
path
- int
count
- string
uuid
- string
analyzer
- string
architecture
- string
cmdline
- string
component
- string
executable
- string
kernel
- string
reason
- string
username
- date
created
- date
modified
Chapter 37. Namespace: system.custominfo
system.custominfo
37.1. Method: createKey
Create a new custom key.
The following parameters are available for this method:
- string
sessionKey
- string
keyLabel
- New key's label - string
keyDescription
- New key's description
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
37.2. Method: deleteKey
Delete an existing custom key and all systems' values for the key.
The following parameters are available for this method:
- string
sessionKey
- string
keyLabel
- New key's label
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
37.3. Method: listAllKeys
List the custom information keys defined for the user's organization.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - custom info
- int
id
- string
label
- string
description
- int
system_count
- dateTime.iso8601
last_modified
37.4. Method: updateKey
Update description of a custom key.
The following parameters are available for this method:
- string
sessionKey
- string
keyLabel
- Key to change - string
keyDescription
- New key's description
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise.
Chapter 38. Namespace: system.provisioning.snapshot
system.provisioning.snapshot
38.1. Method: addTagToSnapshot
Adds tag to snapshot.
The following parameters are available for this method:
- string
sessionKey
- int
snapshotId
- ID of the snapshot - string
tag
- Name of the snapshot tag
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
38.2. Method: deleteSnapshot
Deletes a snapshot with the given snapshot ID.
The following parameters are available for this method:
- string
sessionKey
- int
snapshotId
- ID of snapshot to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
38.3. Method: deleteSnapshots
Deletes all snapshots across multiple systems based on the given date criteria. For example:
- If the user provides
startDate
only, all snapshots created either on or after the date provided are removed - If user provides
startDate
andendDate
, all snapshots created on or between the dates provided are removed - If the user doesn't provide a
startDate
andendDate
, all snapshots are removed
The following parameters are available for this method:
- string
sessionKey
- struct - date details
- dateTime.iso8601
startDate
(Optional, unlessendDate
is provided) - dateTime.iso8601
endDate
(Optional)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
38.4. Method: deleteSnapshots
Deletes all snapshots for a given system based on the date criteria. For example,
- If the user provides
startDate
only, all snapshots created either on or after the date provided are removed - If user provides
startDate
andendDate
, all snapshots created on or between the dates provided are removed - If the user doesn't provide a
startDate
andendDate
, all snapshots associated with the server are removed
The following parameters are available for this method:
- string
sessionKey
- int
sid
- system ID of system to delete snapshots - struct - date details
- dateTime.iso8601
startDate
(optional, unlessendDate
is provided) - dateTime.iso8601
endDate
(optional)
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
38.5. Method: listSnapshotConfigFiles
List the configuration files associated with a snapshot.
The following parameters are available for this method:
- string
sessionKey
- int
snapId
The following return values are available for this method:
- array:
- struct - Configuration Revision information
- string
type
- file
- directory
- symlink
- string
path
- File path - string
target_path
- Symbolic link Target file path; present for symbolic links only - string
channel
- Channel name - string
contents
- File contents (base64 encoded according to thecontents_enc64
attribute) - boolean
contents_enc64
- Identifies base64 encoded content - int
revision
- File revision - dateTime.iso8601
creation
- Creation date - dateTime.iso8601
modified
- Last modified date - string
owner
- File owner; present for files or directories only - string
group
- File Group; present for files or directories only - int
permissions
- File Permissions; present for files or directories only (Deprecated) - string
permissions_mode
- File Permissions; present for files or directories only - string
selinux_ctx
- SELinux Context (optional) - boolean
binary
-true
orfalse
; present for files only - string
md5
- File's md5 signature. Present for files only - string
macro-start-delimiter
- Macro start delimiter for a config file. Present for text files only - string
macro-end-delimiter
- Macro end delimiter for a config file. Present for text files only
38.6. Method: listSnapshotPackages
List the packages associated with a snapshot.
The following parameters are available for this method:
- string
sessionKey
- int
snapId
The following return values are available for this method:
- array:
- struct - package nvera
- string
name
- string
epoch
- string
version
- string
release
- string
arch
38.7. Method: listSnapshots
List snapshots for a given system. A user may optionally provide a start and end date to narrow the snapshots that are listed. For example:
- If the user provides
startDate
only, all snapshots created either on or after the date provided are returned - If user provides
startDate
andendDate
, all snapshots created on or between the dates provided are returned - If the user doesn't provide a
startDate
andendDate
, all snapshots associated with the server are returned
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- struct - date details
- dateTime.iso8601
startDate
(optional, unlessendDate
is provided) - dateTime.iso8601
endDate
(optional)
The following return values are available for this method:
- array:
- struct - server snapshot
- int
id
- string
reason
- The reason for the snapshot's existence - dateTime.iso8601
created
- array
channels
- string - Labels of channels associated with the snapshot
- array
groups
- string - Names of server groups associated with the snapshot
- array
entitlements
- string - Names of system entitlements associated with the snapshot
- array
config_channels
- string - Labels of config channels the snapshot is associated with
- array
tags
- string - Tag names associated with this snapshot
- string
Invalid_reason
- If the snapshot is invalid, this is the reason (optional)
Chapter 39. Namespace: system.scap
system.scap
39.1. Method: deleteXccdfScan
Delete OpenSCAP XCCDF Scan from Satellite database. Note only SCAP scans that have passed their retention period can be deleted.
The following paramaters are available for this method:
- string
sessionKey
- int
Id
of XCCDF scan (xid).
The following return values are available for this method:
- boolean -
indicates
success of the operation.
39.2. Method: getXccdfScanDetails
Get details of given OpenSCAP XCCDF scan.
The following parameters are available for this method:
- string
sessionKey
- int - ID of XCCDF scan (xid).
The following return values are available for this method:
- struct - OpenSCAP XCCDF Scan
- int
xid
- XCCDF TestResult ID - int
sid
- The server ID - int
action_id
- ID of the parent action - string
path
- Path to XCCDF document - string
oscap_parameters
- OSCAP command-line arguments - string
test_result
- Identifier of XCCDF TestResult - string
benchmark
- Identifier of XCCDF Benchmark - string
benchmark_version
- Version of the Benchmark - string
profile
- Identifier of XCCDF Profile - string
profile_title
- Title of XCCDF Profile - dateTime.iso8601
start_time
- Client machine time of scan start - dateTime.iso8601
end_time
- Client machine time of scan completion - string
errors
- Stderr output of scan
39.3. Method: getXccdfScanRuleResults
Return a full list of RuleResults
for given OpenSCAP XCCDF scan.
The following parameters are available for this method:
- string
sessionKey
- int - ID of XCCDF scan (xid)
The following return values are available for this method:
- array:
- struct - OpenSCAP XCCDF RuleResult
- string
idref
-idref
from XCCDF document - string
result
- Result of evaluation - string
idents
- Comma separated list of XCCDF idents
39.4. Method: listXccdfScans
Return a list of finished OpenSCAP scans for a given system.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
The following return values are available for this method:
- array:
- struct - OpenSCAP XCCDF Scan
- int
xid
- XCCDF TestResult ID - string
profile
- XCCDF Profile - string
path
- Path to XCCDF document - dateTime.iso8601
completed
- Scan completion time
39.5. Method: scheduleXccdfScan
Schedule OpenSCAP scan.
The following parameters are available for this method:
- string
sessionKey
- array:
- int -
serverId
- string - Path to xccdf content on targeted systems
- string - Additional parameters for OSCAP tool
The following return values are available for this method:
- int - ID of SCAP action created
39.6. Method: scheduleXccdfScan
Schedule OpenSCAP scan.
The following parameters are available for this method:
- string
sessionKey
- array:
- int -
serverId
- string - Path to xccdf content on targeted systems
- string - Additional parameters for OSCAP tool
- dateTime.iso8601
date
- The date to schedule the action
The following return values are available for this method:
- int - ID of SCAP action created
39.7. Method: scheduleXccdfScan
Schedule SCAP XCCDF scan.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string - Path to xccdf content on targeted system
- string - Additional parameters for OSCAP tool
The following return values are available for this method:
- int - ID of the SCAP action created
39.8. Method: scheduleXccdfScan
Schedule SCAP XCCDF scan.
The following parameters are available for this method:
- string
sessionKey
- int
serverId
- string - Path to xccdf content on targeted system
- string - Additional parameters for OSCAP tool
- dateTime.iso8601
date
- The date to schedule the action
The following return values are available for this method:
- int - ID of the scap action created
Chapter 40. Namespace: system.search
system.search
40.1. Method: deviceDescription
List the systems which match the device description.
The following parameters are available for this method:
- string
sessionKey
- string
searchTerm
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server attempted a successful check-in - string
hostname
- string
ip
- string
hw_description
- Hardware description if not null - string
hw_device_id
- Hardware device ID if not null - string
hw_vendor_id
- Hardware vendor ID if not null - string
hw_driver
- Hardware driver if not null
40.2. Method: deviceDriver
List the systems that match this device driver.
The following parameters are available for this method:
- string
sessionKey
- string
searchTerm
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server attempted a successful check-in - string
hostname
- string
ip
- string
hw_description
- Hardware description if not null - string
hw_device_id
- Hardware device id if not null - string
hw_vendor_id
- Hardware vendor id if not null - string
hw_driver
- Hardware driver if not null
40.3. Method: deviceId
List the systems which match this device ID.
The following parameters are available for this method:
- string
sessionKey
- string
searchTerm
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server attempted a successful check-in - string
hostname
- string
ip
- string
hw_description
- Hardware description if not null - string
hw_device_id
- Hardware device id if not null - string
hw_vendor_id
- Hardware vendor id if not null - string
hw_driver
- Hardware driver if not null
40.4. Method: deviceVendorId
List the systems which match this device Vendor ID.
The following parameters are available for this method:
- string
sessionKey
- string
searchTerm
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server attempted a successful check-in - string
hostname
- string
ip
- string
hw_description
- Hardware description if not null - string
hw_device_id
- Hardware device id if not null - string
hw_vendor_id
- Hardware vendor id if not null - string
hw_driver
- Hardware driver if not null
40.5. Method: hostname
List the systems which match this hostname.
The following parameters are available for this method:
- string
sessionKey
- string
searchTerm
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server attempted a successful check-in - string
hostname
- string
ip
- string
hw_description
- Hardware description if not null - string
hw_device_id
- Hardware device id if not null - string
hw_vendor_id
- Hardware vendor id if not null - string
hw_driver
- Hardware driver if not null
40.6. Method: ip
List the systems which match this IP.
The following parameters are available for this method:
- string
sessionKey
- string
searchTerm
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server attempted a successful check-in - string
hostname
- string
ip
- string
hw_description
- Hardware description if not null - string
hw_device_id
- Hardware device id if not null - string
hw_vendor_id
- Hardware vendor id if not null - string
hw_driver
- Hardware driver if not null
40.7. Method: nameAndDescription
List the systems which match this name or description.
The following parameters are available for this method:
- string
sessionKey
- string
searchTerm
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server attempted a successful check-in - string
hostname
- string
ip
- string
hw_description
- Hardware description if not null - string
hw_device_id
- Hardware device id if not null - string
hw_vendor_id
- Hardware vendor id if not null - string
hw_driver
- Hardware driver if not null
40.8. Method: uuid
List the systems which match this UUID.
The following parameters are available for this method:
- string
sessionKey
- string
searchTerm
The following return values are available for this method:
- array:
- struct - system
- int
id
- string
name
- dateTime.iso8601
last_checkin
- Last time server attempted a successful check-in - string
hostname
- string
ip
- string
hw_description
- Hardware description if not null - string
hw_device_id
- Hardware device id if not null - string
hw_vendor_id
- Hardware vendor id if not null - string
hw_driver
- Hardware driver if not null
Chapter 41. Namespace: systemgroup
systemgroup
41.1. Method: addOrRemoveAdmins
Add or remove administrators to or from the given group. Satellite and organization administrators are granted access to groups within their organization by default. Therefore, users with those roles are not included in the array provided. Caller must be an organization administrator.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
- array:
- string -
loginName
- User's login name
- int
add
-1
to add administrators,0
to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
41.2. Method: addOrRemoveSystems
Add or remove the given servers to a system group.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
- array:
- int -
serverId
- boolean
add
-true
to add to the group,false
to remove
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
41.3. Method: create
Create a new system group.
The following parameters are available for this method:
- string
sessionKey
- string
name
- Name of the system group - string
description
- Description of the system group
The following return values are available for this method:
- struct - system group
- int
id
- string
name
- string
description
- int
org_id
- int
system_count
41.4. Method: delete
Delete a system group.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
41.5. Method: getDetails
Retrieve details of a system group based on its ID.
The following parameters are available for this method:
- string
sessionKey
- int
systemGroupId
The following return values are available for this method:
- struct - system group
- int
id
- string
name
- string
description
- int
org_id
- int
system_count
41.6. Method: getDetails
Retrieve details of a system group based on its name.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
The following return values are available for this method:
- struct - System Group
- int
id
- string
name
- string
description
- int
org_id
- int
system_count
41.7. Method: listActiveSystemsInGroup
Lists active systems within a system group.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
The following return values are available for this method:
- array:
- int -
server_id
41.8. Method: listAdministrators
Returns the list of users who can administer the given group. Caller must be a system group administrator or an organization administrator.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
The following return values are available for this method:
- array:
- struct - user
- int
id
- string
login
- string
login_uc
- Upper case version of the login - boolean
enabled
-true
if user is enabled,false
if the user is disabled
41.9. Method: listAllGroups
Retrieve a list of system groups that are accessible by the logged in user.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system group
- int
id
- string
name
- string
description
- int
org_id
- int
system_count
41.10. Method: listGroupsWithNoAssociatedAdmins
Returns a list of system groups that do not have an administrator i.e. one who is not an organization administrator, as they have implicit access to system groups. Caller must be an organization administrator.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - system group
- int
id
- string
name
- string
description
- int
org_id
- int
system_count
41.11. Method: listInactiveSystemsInGroup
Lists inactive systems within a system group using a specified inactivity time.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
- int
daysInactive
- Number of days a system must not check in to be considered inactive
The following return values are available for this method:
- array:
- int -
server_id
41.12. Method: listInactiveSystemsInGroup
Lists inactive systems within a system group using the default 1-day threshold.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
The following return values are available for this method:
- array:
- int -
server_id
41.13. Method: listSystems
Return a list of systems associated with this system group. User must have access to this system group.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
The following return values are available for this method:
- array:
- struct - server details
- int
id
- System ID - string
profile_name
- string
base_entitlement
- System's base entitlement label; eitherenterprise_entitled
orsw_mgr_entitled
- array
string
addon_entitlements
- System's addon entitlements- Labels including:
monitoring_entitled
,provisioning_entitled
,virtualization_host
, andvirtualization_host_platform
- boolean
auto_update
-true
if system has auto errata updates enabled - string
release
- The operating system release i.e.4AS
,5Server
- string
address1
- string
address2
- string
city
- string
state
- string
country
- string
building
- string
room
- string
rack
- string
description
- string
hostname
- dateTime.iso8601
last_boot
- string
osa_status
- Eitherunknown
,offline
, oronline
- boolean
lock_status
-true
indicates that the system is locked.false
indicates that the system is unlocked - string
virtualization
- Virtualization type for virtual guests only (optional)
41.14. Method: scheduleApplyErrataToActive
Schedules an action to apply errata updates to active systems from a group.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
- array:
- int -
errataId
The following return values are available for this method:
- array:
- int
actionId
- The action ID of the scheduled action
41.15. Method: scheduleApplyErrataToActive
Schedules an action to apply errata updates to active systems from a group at a given date and time.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
- array:
- int -
errataId
- dateTime.iso8601
earliestOccurrence
The following return values are available for this method:
- array:
- int
actionId
- The action ID of the scheduled action
41.16. Method: update
Update an existing system group.
The following parameters are available for this method:
- string
sessionKey
- string
systemGroupName
- string
description
The following return values are available for this method:
- struct - system group
- int
id
- string
name
- string
description
- int
org_id
- int
system_count
Chapter 42. Namespace: user
user
42.1. Method: addAssignedSystemGroup
Add system group to user's list of assigned system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - string
serverGroupName
- boolean
setDefault
- Defines if the system group is added to user's list of default system groups
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.2. Method: addAssignedSystemGroups
Add system groups to user's list of assigned system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - array:
- string -
serverGroupName
- boolean
setDefault
- Defines if system groups are also added to user's list of default system groups
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.3. Method: addDefaultSystemGroup
Add system group to user's list of default system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - string
serverGroupName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.4. Method: addDefaultSystemGroups
Add system groups to user's list of default system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - array:
- string -
serverGroupName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.5. Method: addRole
Adds a role to a user.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User login name to update - string
role
- Role label to add. Can be any of:satellite_admin
,org_admin
,channel_admin
,config_admin
,system_group_admin
,activation_key_admin
, ormonitoring_admin
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.6. Method: create
Create a new user.
The following parameters are available for this method:
- string
sessionKey
- string
desiredLogin
- Desired login name; fails if already in use - string
desiredPassword
- string
firstName
- string
lastName
- string
email
- User's e-mail address
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.7. Method: create
Create a new user.
The following parameters are available for this method:
- string
sessionKey
- string
desiredLogin
- Desired login name; fails if already in use - string
desiredPassword
- string
firstName
- string
lastName
- string
email
- User's e-mail address - int
usePamAuth
-1
to use PAM authentication for this user,0
otherwise
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.8. Method: delete
Delete a user.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User login name to delete
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.9. Method: disable
Disable a user.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User login name to disable
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.10. Method: enable
Enable a user.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User login name to enable
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.11. Method: getDetails
Returns the details about a given user.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name
The following return values are available for this method:
- struct - user details
- string
first_names
(deprecated, usefirst_name
) - string
first_name
- string
last_name
- string
email
- int
org_id
- string
prefix
- string
last_login_date
- string
created_date
- boolean
enabled
-true
if user is enabled,false
if the user is disabled - boolean
use_pam
-true
if user is configured to use PAM authentication
42.12. Method: getLoggedInTime
Returns the time user last logged in.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name
The following return values are available for this method:
- dateTime.iso8601
42.13. Method: listAssignableRoles
Returns a list of user roles that this user can assign to others.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- string - role label
42.14. Method: listAssignedSystemGroups
Returns the system groups that a user can administer.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name
The following return values are available for this method:
- array:
- struct - system group
- int
id
- string
name
- string
description
- int
system_count
- int
org_id
- Organization ID for this system group
42.15. Method: listDefaultSystemGroups
Returns a user's list of default system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name
The following return values are available for this method:
- array:
- struct - system group
- int
id
- string
name
- string
description
- int
system_count
- int
org_id
- Organization ID for this system group
42.16. Method: listRoles
Returns a list of the user's roles.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name
The following return values are available for this method:
- array:
- string - role label
42.17. Method: listUsers
Returns a list of users in your organization.
The following parameters are available for this method:
- string
sessionKey
The following return values are available for this method:
- array:
- struct - user
- int
id
- string
login
- string
login_uc
- Upper case version of the login - boolean
enabled
-true
if user is enabled,false
if the user is disabled
42.18. Method: removeAssignedSystemGroup
Remove system group from the user's list of assigned system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - string
serverGroupName
- boolean
setDefault
- Defines if the system group is removed from the user's list of default system groups
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.19. Method: removeAssignedSystemGroups
Remove system groups from a user's list of assigned system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - array:
- string -
serverGroupName
- boolean
setDefault
- Deinfes if the system groups are also removed from the user's list of default system groups
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.20. Method: removeDefaultSystemGroup
Remove a system group from user's list of default system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - string
serverGroupName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.21. Method: removeDefaultSystemGroups
Remove system groups from a user's list of default system groups.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - array:
- string -
serverGroupName
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.22. Method: removeRole
Remove a role from a user.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User login name to update - string
role
- Role label to add. Can be any of:satellite_admin
,org_admin
,channel_admin
,config_admin
,system_group_admin
,activation_key_admin
, ormonitoring_admin
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.23. Method: setDetails
Updates the details of a user.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - struct - user details
- string
first_names
(deprecated, usefirst_name
) - string
first_name
- string
last_name
- string
email
- string
prefix
- string
password
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
42.24. Method: usePamAuthentication
Toggles whether or not a user uses PAM authentication or basic Red Hat Network authentication.
The following parameters are available for this method:
- string
sessionKey
- string
login
- User's login name - int
pam_value
1
to enable PAM authentication0
to disable
The following return values are available for this method:
- int -
1
on success, exception thrown otherwise
Appendix A. Revision History
Revision History | |||
---|---|---|---|
Revision 1.0-15.401 | Thu Aug 20 2015 | Dan Macpherson | |
| |||
Revision 1.0-15.400 | 2013-10-31 | Rüdiger Landmann | |
| |||
Revision 1.0-15 | Fri Sep 27 2013 | Dan Macpherson | |
| |||
Revision 1.0-14 | Mon Sep 23 2013 | Dan Macpherson | |
| |||
Revision 1.0-13 | Tue Sep 10 2013 | Dan Macpherson | |
| |||
Revision 1.0-12 | Wed Sep 4 2013 | Dan Macpherson | |
| |||
Revision 1.0-11 | Wed Sep 4 2013 | Dan Macpherson | |
| |||
Revision 1.0-10 | Wed Sep 4 2013 | Dan Macpherson | |
| |||
Revision 1.0-9 | Thu Aug 29 2013 | Dan Macpherson | |
| |||
Revision 1.0-8 | Sun Jul 28 2013 | Dan Macpherson | |
| |||
Revision 1.0-7 | Wed Jul 24 2013 | Dan Macpherson | |
| |||
Revision 1.0-6 | Tue Jul 23 2013 | Dan Macpherson | |
| |||
Revision 1.0-5 | Wed Jul 3 2013 | Dan Macpherson | |
| |||
Revision 1.0-4 | Wed Jul 3 2013 | Dan Macpherson | |
| |||
Revision 1.0-3 | Wed Jul 3 2013 | Dan Macpherson | |
| |||
Revision 1.0-2 | Wed Jul 3 2013 | Dan Macpherson | |
| |||
Revision 1.0-1 | Wed Jul 3 2013 | Dan Macpherson | |
| |||
Revision 1.0-0 | Wed Jul 3 2013 | Dan Macpherson | |
|