Packages Methods

Packages methods are available in the packages namespace. These methods are used for extracting information about the packages that are available to a session on the ULN. The following methods are provided for interacting with packages that are available on ULN:

packages.getDetails

The getDetails method returns detailed information about the specified package.

Input Parameters

Parameter Description
sessionKey The session key for the session.
pid The package identifier that should be queried, specified as an integer.

Return Parameters

Field Description
array An array of channels with:
struct (package)
download_urls
An array of URLs where the package can be downloaded from.
url
URL value. To access a URL, include the X-ULN-Api-User-Key header with the value of the session key that was returned when you authenticated.
providing_channels
An array listing channels providing this package.
label
A string with the channel label as a value.
package_arch_label
The package architecture label.
package_build_date
The date and timestamp for when the package was built.
package_build_host
The host where the package was built.
package_cookie
The package cookie value. Usually empty.
package_description
The full description of the package.
package_epoch
The package epoch value, if specified. The epoch value can help RPM decide package version ordering if the versioning doesn't make sense or doesn't follow sequentially.
package_file
The package filename.
package_id
The ULN package identifier.
package_last_modified_date
The date and timestamp for when the package was last modified.
package_license
The license or licenses that a package is released under.
package_md5sum
The package md5sum value.
package_name
The package name.
package_payload_size
The package payload size in bytes.
package_release
The package release value.
package_size
The package size in bytes.
package_summary
A summary of the contents of the package.
package_vendor
The package vendor name.
package_version
The package version.
package_checksums
A structure, listing package checksum values by type:
md5
The md5 hash for the package checksum value.

Example Input Parameters


sessionKey: ebQ3nS8QOmXoDIsXbrZTcD4xDMzsmJUo7yhoSi6VwPT
pid: 31941131
            

Example Output Parameters


{
    "package_last_modified_date": "2025-03-18 10:33:39",
    "package_arch_label": "x86_64",
    "package_cookie": " ",
    "package_name": "NetworkManager-adsl",
    "package_summary": "ADSL device plugin for NetworkManager",
    "package_epoch": "1",
    "package_checksums": [
        {
            "sha256": "0d5be4637e423a06c3b09a4d2ae145b82077f0028bfc98097489c35f077b8237"
        }
    ],
    "package_payload_size": 41460,
    "package_version": "1.48.10",
    "package_license": "GPL-2.0-or-later AND LGPL-2.1-or-later",
    "package_vendor": "Oracle America",
    "package_release": "8.0.1.el9_5",
    "package_size": 40708,
    "package_sha256": "0d5be4637e423a06c3b09a4d2ae145b82077f0028bfc98097489c35f077b8237",
    "package_id": 31941131,
    "providing_channels": [
        "ol9_x86_64_baseos_latest"
    ],
    "package_build_host": "build-ol9-x86_64.oracle.com",
    "package_description": "This package contains NetworkManager support for ADSL devices.",
    "package_build_date": "2025-03-18 10:33:39",
    "download_urls": [
        "https://linux-update.oracle.com/XMLRPC/GET-REQ/ol9_x86_64_baseos_latest/NetworkManager-adsl-1.48.10-8.0.1.el9_5.x86_64.rpm"
    ],
    "package_file": "NetworkManager-adsl-1.48.10-8.0.1.el9_5.x86_64.rpm"
}
            

packages.listProvidingErrata

The listProvidingErrata method returns a list of the errata that are associated with a package.

Input Parameters

Parameter Description
sessionKey The session key for the session. For example: JyUVNoT74BFaRJ6fRjDIQ5idPmCaj5UJLb76E2f45Gc
pid The package identifier that should be queried, specified as an integer. For example: 11807834

Return Parameters

Field Description
array An array of all errata associated with the package:
struct (errata)
errata_advisory_type
The errata advisory type. For example: Security Advisory
errata_advisory
The errata advisory label. For example: ELSA-2018-2942
errata_issue_date
The date the errata was issued. For example: 2018-10-17 00:00:00
errata_last_modified_date
The date the errata was last modified. For example: 2018-10-17 00:00:00
errata_synopsis
A brief synopsis of the errata. For example: java-1.8.0-openjdk security update
errata_update_date
The errata update date. For example: 2018-10-17 00:00:00

Example Input Parameters


sessionKey: ebQ3nS8QOmXoDIsXbrZTcD4xDMzsmJUo7yhoSi6VwPT
pid: 31941131
            

Example Output Parameters


[
    {
        "errata_update_date": "2025-03-18 00:00:00",
        "errata_advisory_type": "Bug Fix Advisory",
        "errata_synopsis": "NetworkManager bug fix and enhancement update",
        "errata_advisory": "ELBA-2025-2989",
        "errata_last_modified_date": "2025-03-18 00:00:00",
        "errata_issue_date": "2025-03-18 00:00:00"
    }
]