Examples

GET /katello/api/packages
200
{
  "total": 11,
  "subtotal": 11,
  "selectable": 11,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "id": 1037874757,
      "pulp_id": "modular",
      "name": "modular",
      "version": "0.9",
      "release": "108",
      "arch": "x86_64",
      "epoch": "0",
      "summary": null,
      "modular": true,
      "filename": "mod-99-108.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "modular-0.9-108.x86_64",
      "nvra": "mod-99-108.x86_64",
      "uuid": "modular",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 528479827,
      "pulp_id": "foobarmodularrpm",
      "name": "modular_with_erratum_package",
      "version": null,
      "release": null,
      "arch": null,
      "epoch": null,
      "summary": null,
      "modular": true,
      "filename": "foobarmod-1.3.4.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "modular_with_erratum_package",
      "nvra": null,
      "uuid": "foobarmodularrpm",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 980190962,
      "pulp_id": "one-uuid",
      "name": "one",
      "version": "1.0",
      "release": "1.el7",
      "arch": "x86_64",
      "epoch": "0",
      "summary": null,
      "modular": false,
      "filename": "one-1.1.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "one-1.0-1.el7.x86_64",
      "nvra": "one-1.0-1.el7.x86_64",
      "uuid": "one-uuid",
      "hosts_available_count": 0,
      "hosts_applicable_count": 1
    },
    {
      "id": 737645823,
      "pulp_id": "one-i686-uuid",
      "name": "one",
      "version": "1.0",
      "release": "1.el7",
      "arch": "i686",
      "epoch": "0",
      "summary": null,
      "modular": false,
      "filename": "one-i686-1.1.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "one-1.0-1.el7.i686",
      "nvra": "one-1.0-1.el7.i686",
      "uuid": "one-i686-uuid",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 1046165992,
      "pulp_id": "one-uuid-two",
      "name": "one",
      "version": "1.0",
      "release": "2.el7",
      "arch": "x86_64",
      "epoch": "0",
      "summary": null,
      "modular": false,
      "filename": "one-1.2.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "one-1.0-2.el7.x86_64",
      "nvra": "one-1.0-2.el7.x86_64",
      "uuid": "one-uuid-two",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 103704101,
      "pulp_id": "one-i686-uuid-two",
      "name": "one",
      "version": "1.0",
      "release": "2.el7",
      "arch": "i686",
      "epoch": "0",
      "summary": null,
      "modular": false,
      "filename": "one-i686-1.2.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "one-1.0-2.el7.i686",
      "nvra": "one-1.0-2.el7.i686",
      "uuid": "one-i686-uuid-two",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 102647956,
      "pulp_id": "openssl-epoch0-uuid",
      "name": "openssl",
      "version": "3.2.2",
      "release": "1.el9",
      "arch": "x86_64",
      "epoch": "0",
      "summary": null,
      "modular": false,
      "filename": "openssl-3.2.2-1.el9.x86_64.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "openssl-3.2.2-1.el9.x86_64",
      "nvra": "openssl-3.2.2-1.el9.x86_64",
      "uuid": "openssl-epoch0-uuid",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 880786105,
      "pulp_id": "openssl-epoch1-diff-uuid",
      "name": "openssl",
      "version": "3.2.1",
      "release": "1.el9",
      "arch": "x86_64",
      "epoch": "1",
      "summary": null,
      "modular": false,
      "filename": "openssl-1:3.2.1-1.el9.x86_64.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "openssl-1:3.2.1-1.el9.x86_64",
      "nvra": "openssl-1:3.2.1-1.el9.x86_64",
      "uuid": "openssl-epoch1-diff-uuid",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 823752711,
      "pulp_id": "openssl-epoch1-uuid",
      "name": "openssl",
      "version": "3.2.2",
      "release": "1.el9",
      "arch": "x86_64",
      "epoch": "1",
      "summary": null,
      "modular": false,
      "filename": "openssl-1:3.2.2-1.el9.x86_64.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "openssl-1:3.2.2-1.el9.x86_64",
      "nvra": "openssl-1:3.2.2-1.el9.x86_64",
      "uuid": "openssl-epoch1-uuid",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 113629430,
      "pulp_id": "three-uuid",
      "name": "three",
      "version": "99",
      "release": "108",
      "arch": "x86_64",
      "epoch": "0",
      "summary": null,
      "modular": false,
      "filename": "three-99-108.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "three-99-108.x86_64",
      "nvra": "three-99-108.x86_64",
      "uuid": "three-uuid",
      "hosts_available_count": 0,
      "hosts_applicable_count": 0
    },
    {
      "id": 298486374,
      "pulp_id": "two-uuid",
      "name": "two",
      "version": "1.0",
      "release": "1.el7",
      "arch": "x86_64",
      "epoch": "0",
      "summary": null,
      "modular": false,
      "filename": "two-2.1.rpm",
      "sourcerpm": null,
      "checksum": null,
      "nvrea": "two-1.0-1.el7.x86_64",
      "nvra": "two-1.0-1.el7.x86_64",
      "uuid": "two-uuid",
      "hosts_available_count": 0,
      "hosts_applicable_count": 1
    }
  ]
}

Params

Param name Description
organization_id
optional

Organization identifier

Validations:

  • Must be a number.

content_view_version_id
optional

Content View Version identifier

Validations:

  • Must be a number.

content_view_filter_id
optional

Content View Filter identifier. Use to filter by ID

Validations:

  • Must be a number.

repository_id
optional

Repository identifier

Validations:

  • Must be a number.

environment_id
optional

Environment identifier

Validations:

  • Must be a number.

ids
optional

Package identifiers to filter content by

Validations:

  • Must be an array of any type

host_id
optional

Host id to list applicable packages for

Validations:

  • Must be a number.

packages_restrict_applicable
optional

Return packages that are applicable to one or more hosts (defaults to true if host_id is specified)

Validations:

  • Must be one of: true, false, 1, 0.

packages_restrict_upgradable
optional

Return packages that are upgradable on one or more hosts

Validations:

  • Must be one of: true, false, 1, 0.

packages_restrict_latest
optional

Return only the latest version of each package

Validations:

  • Must be one of: true, false, 1, 0.

available_for
optional

Return packages that can be added to the specified object. Only the value ‘content_view_version’ is supported.

Validations:

  • String

search
optional

Search string

Validations:

  • String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return

Validations:

  • Must be a number.

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • String

full_result
optional

Whether or not to show all results

Validations:

  • Must be one of: true, false, 1, 0.

sort_by
optional

Field to sort the results on

Validations:

  • String

sort_order
optional

How to order the sorted results (e.g. ASC for ascending)

Validations:

  • String