( Return to API Overview )

Available methods

Description

Provides methods to access and modify many aspects of a channel.

Namespace: channel.software


Method: addPackages

Description:
Adds a given list of packages to the given channel.

Parameters:

Returns:


Method: addRepoFilter

Description:
Adds a filter for a given repo.

Parameters:

Returns:


Method: associateRepo

Description:
Associates a repository with a channel

Parameters:

Returns:


Method: clearRepoFilters

Description:
Removes the filters for a repo

Parameters:

Returns:


Method: clone

Description:
Clone a channel. If arch_label is omitted, the arch label of the original channel will be used. If parent_label is omitted, the clone will be a base channel.

Parameters:

Returns:


Method: create

Description:
Creates a software channel

Parameters:

Returns:

Available since: 10.9


Method: create

Description:
Creates a software channel

Parameters:

Returns:

Available since: 10.9


Method: create

Description:
Creates a software channel

Parameters:

Returns:


Method: createRepo

Description:
Creates a repository

Parameters:

Returns:


Method: createRepo

Description:
Creates a repository

Parameters:

Returns:


Method: delete

Description:
Deletes a custom software channel

Parameters:

Returns:


Method: disassociateRepo

Description:
Disassociates a repository from a channel

Parameters:

Returns:


Method: getChannelLastBuildById

Description:
Returns the last build date of the repomd.xml file for the given channel as a localised string.

Parameters:

Returns:


Method: getDetails

Description:
Returns details of the given channel as a map

Parameters:

Returns:


Method: getDetails

Description:
Returns details of the given channel as a map

Parameters:

Returns:


Method: getRepoDetails

Description:
Returns details of the given repository

Parameters:

Returns:


Method: getRepoDetails

Description:
Returns details of the given repo

Parameters:

Returns:


Method: getRepoSyncCronExpression

Description:
Returns repo synchronization cron expression

Parameters:

Returns:


Method: isGloballySubscribable

Description:
Returns whether the channel is subscribable by any user in the organization

Parameters:

Returns:


Method: isUserManageable

Description:
Returns whether the channel may be managed by the given user.

Parameters:

Returns:


Method: isUserSubscribable

Description:
Returns whether the channel may be subscribed to by the given user.

Parameters:

Returns:


Method: listAllPackages

Description:
Lists all packages in the channel, regardless of package version, between the given dates.

Parameters:

Returns:


Method: listAllPackages

Description:
Lists all packages in the channel, regardless of version whose last modified date is greater than given date.

Parameters:

Returns:


Method: listAllPackages

Description:
Lists all packages in the channel, regardless of the package version

Parameters:

Returns:


Method: listAllPackages

Description:
Lists all packages in the channel, regardless of package version, between the given dates. Example Date: '2008-08-20 08:00:00'

Deprecated - being replaced by listAllPackages(string sessionKey, string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601 endDate)

Parameters:

Returns:


Method: listAllPackages

Description:
Lists all packages in the channel, regardless of version whose last modified date is greater than given date. Example Date: '2008-08-20 08:00:00'

Deprecated - being replaced by listAllPackages(string sessionKey, string channelLabel, dateTime.iso8601 startDate)

Parameters:

Returns:


Method: listAllPackagesByDate

Description:
Lists all packages in the channel, regardless of the package version, between the given dates. Example Date: '2008-08-20 08:00:00'

Deprecated - being replaced by listAllPackages(string sessionKey, string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601 endDate)

Parameters:

Returns:


Method: listAllPackagesByDate

Description:
Lists all packages in the channel, regardless of the package version, whose last modified date is greater than given date. Example Date: '2008-08-20 08:00:00'

Deprecated - being replaced by listAllPackages(string sessionKey, string channelLabel, dateTime.iso8601 startDate)

Parameters:

Returns:


Method: listAllPackagesByDate

Description:
Lists all packages in the channel, regardless of the package version

Deprecated - being replaced by listAllPackages(string sessionKey, string channelLabel)

Parameters:

Returns:


Method: listArches

Description:
Lists the potential software channel architectures that can be created

Parameters:

Returns:


Method: listChannelRepos

Description:
Lists associated repos with the given channel

Parameters:

Returns:


Method: listChildren

Description:
List the children of a channel

Parameters:

Returns:


Method: listErrata

Description:
List the errata applicable to a channel after given startDate

Parameters:

Returns:


Method: listErrata

Description:
List the errata applicable to a channel between startDate and endDate.

Parameters:

Returns:


Method: listErrata

Description:
List the errata applicable to a channel between startDate and endDate.

Parameters:

Returns:


Method: listErrata

Description:
List the errata applicable to a channel

Parameters:

Returns:


Method: listErrata

Description:
List the errata applicable to a channel after given startDate

Deprecated - being replaced by listErrata(string sessionKey, string channelLabel, dateTime.iso8601 startDate)

Parameters:

Returns:


Method: listErrata

Description:
List the errata applicable to a channel between startDate and endDate.

Deprecated - being replaced by listErrata(string sessionKey, string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601)

Parameters:

Returns:


Method: listErrataByType

Description:
List the errata of a specific type that are applicable to a channel

Parameters:

Returns:


Method: listErrataNeedingSync

Description:
If you have satellite-synced a new channel then Red Hat Errata will have been updated with the packages that are in the newly synced channel. A cloned erratum will not have been automatically updated however. If you cloned a channel that includes those cloned errata and should include the new packages, they will not be included when they should. This method lists the errata that will be updated if you run the syncErrata method.

Parameters:

Returns:


Method: listLatestPackages

Description:
Lists the packages with the latest version (including release and epoch) for the given channel

Parameters:

Returns:


Method: listPackagesWithoutChannel

Description:
Lists all packages that are not associated with a channel. Typically these are custom packages.

Parameters:

Returns:


Method: listRepoFilters

Description:
Lists the filters for a repo

Parameters:

Returns:


Method: listSubscribedSystems

Description:
Returns list of subscribed systems for the given channel label

Parameters:

Returns:


Method: listSystemChannels

Description:
Returns a list of channels that a system is subscribed to for the given system id

Parameters:

Returns:


Method: listUserRepos

Description:
Returns a list of ContentSource (repos) that the user can see

Parameters:

Returns:


Method: mergeErrata

Description:
Merges all errata from one channel into another

Parameters:

Returns:


Method: mergeErrata

Description:
Merges all errata from one channel into another based upon a given start/end date.

Parameters:

Returns:


Method: mergeErrata

Description:
Merges a list of errata from one channel into another

Parameters:

Returns:


Method: mergePackages

Description:
Merges all packages from one channel into another

Parameters:

Returns:


Method: regenerateNeededCache

Description:
Completely clear and regenerate the needed Errata and Package cache for all systems subscribed to the specified channel. This should be used only if you believe your cache is incorrect for all the systems in a given channel. This will schedule an asynchronous action to actually do the processing.

Parameters:

Returns:


Method: regenerateNeededCache

Description:
Completely clear and regenerate the needed Errata and Package cache for all systems subscribed. You must be a Satellite Admin to perform this action. This will schedule an asynchronous action to actually do the processing.

Parameters:

Returns:


Method: regenerateYumCache

Description:
Regenerate yum cache for the specified channel.

Parameters:

Returns:


Method: removeErrata

Description:
Removes a given list of errata from the given channel.

Parameters:

Returns:


Method: removePackages

Description:
Removes a given list of packages from the given channel.

Parameters:

Returns:


Method: removeRepo

Description:
Removes a repository

Parameters:

Returns:


Method: removeRepo

Description:
Removes a repository

Parameters:

Returns:


Method: removeRepoFilter

Description:
Removes a filter for a given repo.

Parameters:

Returns:


Method: setContactDetails

Description:
Set contact/support information for given channel.

Parameters:

Returns:


Method: setDetails

Description:
Allows to modify channel attributes

Parameters:

Returns:


Method: setGloballySubscribable

Description:
Set globally subscribable attribute for given channel.

Parameters:

Returns:


Method: setRepoFilters

Description:
Replaces the existing set of filters for a given repo. Filters are ranked by their order in the array.

Parameters:

Returns:


Method: setSystemChannels

Description:
Change a systems subscribed channels to the list of channels passed in.

Deprecated - being replaced by system.setBaseChannel(string sessionKey, int serverId, string channelLabel) and system.setChildChannels(string sessionKey, int serverId, array[string channelLabel])

Parameters:

Returns:


Method: setUserManageable

Description:
Set the manageable flag for a given channel and user. If value is set to 'true', this method will give the user manage permissions to the channel. Otherwise, that privilege is revoked.

Parameters:

Returns:


Method: setUserSubscribable

Description:
Set the subscribable flag for a given channel and user. If value is set to 'true', this method will give the user subscribe permissions to the channel. Otherwise, that privilege is revoked.

Parameters:

Returns:


Method: subscribeSystem

Description:
Subscribes a system to a list of channels. If a base channel is included, that 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, simply provide an empty list of channel labels.

Deprecated - being replaced by system.setBaseChannel(string sessionKey, int serverId, string channelLabel) and system.setChildChannels(string sessionKey, int serverId, array[string channelLabel])

Parameters:

Returns:


Method: syncErrata

Description:
If you have satellite-synced a new channel then Red Hat Errata will have been updated with the packages that are in the newly synced channel. A cloned erratum will not have been automatically updated however. If you cloned a channel that includes those cloned errata and should include the new packages, they will not be included when they should. This method updates all the errata in the given cloned channel with packages that have recently been added, and ensures that all the packages you expect are in the channel.

Parameters:

Returns:


Method: syncRepo

Description:
Trigger immediate repo synchronization

Parameters:

Returns:


Method: syncRepo

Description:
Trigger immediate repo synchronization

Parameters:

Returns:


Method: syncRepo

Description:
Schedule periodic repo synchronization

Parameters:

Returns:


Method: syncRepo

Description:
Schedule periodic repo synchronization

Parameters:

Returns:


Method: updateRepo

Description:
Updates a ContentSource (repo)

Parameters:

Returns:


Method: updateRepoLabel

Description:
Updates repository label

Parameters:

Returns:


Method: updateRepoLabel

Description:
Updates repository label

Parameters:

Returns:


Method: updateRepoSsl

Description:
Updates repository SSL certificates

Parameters:

Returns:


Method: updateRepoSsl

Description:
Updates repository SSL certificates

Parameters:

Returns:


Method: updateRepoUrl

Description:
Updates repository source URL

Parameters:

Returns:


Method: updateRepoUrl

Description:
Updates repository source URL

Parameters:

Returns:


Generated on 8/30/2017