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
    string sessionKey

    The session key for the session. For example: JyUVNoT74BFaRJ6fRjDIQ5idPmCaj5UJLb76E2f45Gc

    int pid

    The package identifier that should be queried, specified as an integer. For example: 11807834

  • Return Parameters
    array

    An array of channels with:

    struct (package)

    A structure containing the following strings:

    array download_urls

    An array of URLs where the package can be downloaded from.

    string 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. For example:
    curl -H "X-ULN-Api-User-Key: JyUVNoT74BFaRJ6fRjDIQ5idPmCaj5UJLb76E2f45Gc" \
    https://uln.oracle.com/XMLRPC/GET-REQ/ol7_x86_64_latest/java-1.8.0-openjdk-demo-1.8.0.191.b12-0.el7_5.i686.rpm
    array providing_channels

    An array listing channels providing this package.

    string label

    A string with the channel label as a value. For example: ol7_x86_64_latest

    string package_arch_label

    The package architecture label. For example: i686

    string package_build_date

    The date and timestamp for when the package was built. For example: 2018-10-17 16:39:10

    string package_build_host

    The host where the package was built. For example: x86-ol7-builder-02.us.oracle.com

    string package_cookie

    The package cookie value. Usually empty.

    string package_description

    The full description of the package. For example: The OpenJDK demos.

    string package_epoch

    The package epoch value, if specified. The epoch value can help RPM determine package version ordering if the versioning does not make sense or does not follow sequentially. For example: 1

    string package_file

    The package filename. For example: java-1.8.0-openjdk-demo-1.8.0.191.b12-0.el7_5.i686.rpm

    string package_id

    For example: 11807834

    string package_last_modified_date

    The date and timestamp for when the package was last modified. For example: 2018-10-17 16:39:10

    string package_license

    The license or licenses that a package is released under. For example: ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib

    string package_md5sum

    The package md5sum value. For example: 1508de7bafe0d6fe0814d216cbbb354b

    string package_name

    The package name. For example: java-1.8.0-openjdk-demo

    string package_payload_size

    The package payload size in bytes. For example: 4412184

    string package_release

    The package release value. For example: 0.el7_5

    string package_size

    The package size in bytes. For example: 4293131

    string package_summary

    A summary of the contents of the package. For example: OpenJDK Demos

    string package_vendor

    The package vendor name. For example: Oracle America

    string package_version

    The package version. For example: 1.8.0.191.b12

    struct package_checksums

    A structure, listing package checksum values by type:

    string md5

    The md5 hash for the package checksum value. For example: 1508de7bafe0d6fe0814d216cbbb354b

packages.listProvidingErrata

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

  • Input Parameters
    string sessionKey

    The session key for the session. For example: JyUVNoT74BFaRJ6fRjDIQ5idPmCaj5UJLb76E2f45Gc

    int pid

    The package identifier that should be queried, specified as an integer. For example: 11807834

  • Return Parameters
    array

    An array of all errata associated with the package:

    struct (errata)

    A structure containing the following strings:

    string errata_advisory_type

    The errata advisory type. For example: Security Advisory

    string errata_advisory

    The errata advisory label. For example: ELSA-2018-2942

    string errata_issue_date

    The date the errata was issued. For example: 2018-10-17 00:00:00

    string errata_last_modified_date

    The date the errata was last modified. For example: 2018-10-17 00:00:00

    string errata_synopsis

    A brief synopsis of the errata. For example: java-1.8.0-openjdk security update

    string errata_update_date

    The errata update date. For example: 2018-10-17 00:00:00