Examples

GET /katello/api/organizations/114267492/repositories
200
{
  "total": 7,
  "subtotal": 7,
  "selectable": 7,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": "name",
    "order": "asc"
  },
  "results": [
    {
      "backend_identifier": "Default_Organization-Test-busybox",
      "relative_path": "ACME_Corporation/library/busybox",
      "container_repository_name": null,
      "full_path": "centos8-katello-devel.area51.example.com/",
      "library_instance_id": 84409059,
      "version_href": null,
      "remote_href": null,
      "publication_href": null,
      "content_counts": {
        "docker_manifest": 0,
        "docker_manifest_list": 0,
        "docker_tag": 0
      },
      "mirroring_policy": "mirror_content_only",
      "id": 1067868180,
      "name": "busybox",
      "label": "busybox",
      "description": null,
      "content_view_versions": [],
      "last_sync": null,
      "content_view": {
        "id": 405955044,
        "name": "Published LIbrary view"
      },
      "content_view_version": {
        "id": 111397700,
        "name": "Published LIbrary view 2.0",
        "content_view_id": 405955044
      },
      "environment": null,
      "content_type": "docker",
      "url": "https://quay.io",
      "arch": "noarch",
      "os_versions": null,
      "content_id": "1",
      "generic_remote_options": null,
      "major": null,
      "minor": null,
      "product": {
        "id": 516337990,
        "cp_id": "puppet",
        "name": "Puppet Product",
        "orphaned": true,
        "redhat": false,
        "sync_plan": null
      },
      "content_label": "fedora",
      "last_sync_words": null
    },
    {
      "backend_identifier": "debian_10_dev_library_view",
      "relative_path": "ACME_Corporation/dev/debian_10_library_library_view_label",
      "container_repository_name": null,
      "full_path": "https://centos8-katello-devel.area51.example.com/pulp/content/ACME_Corporation/dev/debian_10_library_library_view_label/",
      "library_instance_id": 697316289,
      "version_href": null,
      "remote_href": null,
      "publication_href": null,
      "content_counts": {
        "deb": 1
      },
      "mirroring_policy": "mirror_content_only",
      "id": 335884061,
      "name": "Debian 10 amd64",
      "label": "debian_10_amd64_label",
      "description": "My description",
      "content_view_versions": [],
      "last_sync": null,
      "content_view": {
        "id": 405955044,
        "name": "Published LIbrary view"
      },
      "content_view_version": {
        "id": 111397700,
        "name": "Published LIbrary view 2.0",
        "content_view_id": 405955044
      },
      "kt_environment": {
        "id": 292811013,
        "name": "Dev"
      },
      "content_type": "deb",
      "url": "http://myrepo.com",
      "arch": "noarch",
      "os_versions": null,
      "content_id": null,
      "generic_remote_options": null,
      "major": null,
      "minor": null,
      "product": {
        "id": 867224909,
        "cp_id": "debian",
        "name": "Debian",
        "orphaned": true,
        "redhat": false,
        "sync_plan": null
      },
      "content_label": null,
      "last_sync_words": null
    },
    {
      "backend_identifier": "fedora_17_dev_library_view",
      "relative_path": "ACME_Corporation/dev/fedora_17_library_library_view_label",
      "container_repository_name": null,
      "full_path": "https://centos8-katello-devel.area51.example.com/pulp/content/ACME_Corporation/dev/fedora_17_library_library_view_label/",
      "library_instance_id": 367202338,
      "version_href": null,
      "remote_href": null,
      "publication_href": null,
      "content_counts": {
        "rpm": 0,
        "erratum": 0,
        "package_group": 0,
        "srpm": 0,
        "module_stream": 0
      },
      "mirroring_policy": "mirror_content_only",
      "id": 554444310,
      "name": "Fedora 17 x86_64",
      "label": "fedora_17_x86_64_label",
      "description": "My description",
      "content_view_versions": [],
      "last_sync": null,
      "content_view": {
        "id": 405955044,
        "name": "Published LIbrary view"
      },
      "content_view_version": {
        "id": 111397700,
        "name": "Published LIbrary view 2.0",
        "content_view_id": 405955044
      },
      "kt_environment": {
        "id": 292811013,
        "name": "Dev"
      },
      "content_type": "yum",
      "url": "http://myrepo.com",
      "arch": "noarch",
      "os_versions": null,
      "content_id": "1",
      "generic_remote_options": null,
      "major": null,
      "minor": null,
      "product": {
        "id": 785257261,
        "cp_id": "fedora",
        "name": "Fedora",
        "orphaned": false,
        "redhat": false,
        "sync_plan": null
      },
      "content_label": "fedora",
      "last_sync_words": null
    },
    {
      "backend_identifier": "3_view2_library",
      "relative_path": "ACME_Corporation/library/LibraryView/fedora_17_label",
      "container_repository_name": null,
      "full_path": "https://centos8-katello-devel.area51.example.com/pulp/content/ACME_Corporation/library/LibraryView/fedora_17_label/",
      "library_instance_id": 367202338,
      "version_href": null,
      "remote_href": null,
      "publication_href": null,
      "content_counts": {
        "rpm": 0,
        "erratum": 0,
        "package_group": 0,
        "srpm": 0,
        "module_stream": 0
      },
      "mirroring_policy": "mirror_content_only",
      "id": 398981650,
      "name": "Fedora 17 x86_64",
      "label": "fedora_17_x86_64_label",
      "description": "My description",
      "content_view_versions": [],
      "last_sync": null,
      "content_view": {
        "id": 405955044,
        "name": "Published LIbrary view"
      },
      "content_view_version": {
        "id": 111397700,
        "name": "Published LIbrary view 2.0",
        "content_view_id": 405955044
      },
      "kt_environment": {
        "id": 562075838,
        "name": "Library"
      },
      "content_type": "yum",
      "url": "http://myrepo.com",
      "arch": "noarch",
      "os_versions": null,
      "content_id": "1",
      "generic_remote_options": null,
      "major": null,
      "minor": null,
      "product": {
        "id": 785257261,
        "cp_id": "fedora",
        "name": "Fedora",
        "orphaned": false,
        "redhat": false,
        "sync_plan": null
      },
      "content_label": "fedora",
      "last_sync_words": null
    },
    {
      "backend_identifier": "3_view2",
      "relative_path": "ACME_Corporation/library/LibraryView/fedora_17_label",
      "container_repository_name": null,
      "full_path": "https://centos8-katello-devel.area51.example.com/pulp/content/ACME_Corporation/library/LibraryView/fedora_17_label/",
      "library_instance_id": 367202338,
      "version_href": null,
      "remote_href": null,
      "publication_href": null,
      "content_counts": {
        "rpm": 0,
        "erratum": 0,
        "package_group": 0,
        "srpm": 0,
        "module_stream": 0
      },
      "mirroring_policy": "mirror_content_only",
      "id": 129339708,
      "name": "Fedora 17 x86_64",
      "label": "fedora_17_x86_64_label",
      "description": "My description",
      "content_view_versions": [],
      "last_sync": null,
      "content_view": {
        "id": 405955044,
        "name": "Published LIbrary view"
      },
      "content_view_version": {
        "id": 111397700,
        "name": "Published LIbrary view 2.0",
        "content_view_id": 405955044
      },
      "environment": null,
      "content_type": "yum",
      "url": "http://myrepo.com",
      "arch": "noarch",
      "os_versions": null,
      "content_id": "1",
      "generic_remote_options": null,
      "major": null,
      "minor": null,
      "product": {
        "id": 785257261,
        "cp_id": "fedora",
        "name": "Fedora",
        "orphaned": false,
        "redhat": false,
        "sync_plan": null
      },
      "content_label": "fedora",
      "last_sync_words": null
    },
    {
      "backend_identifier": "8_arch",
      "relative_path": "ACME_Corporation/archive/rhel_6_label",
      "container_repository_name": null,
      "full_path": "https://centos8-katello-devel.area51.example.com/pulp/content/ACME_Corporation/archive/rhel_6_label/",
      "library_instance_id": 103207400,
      "version_href": null,
      "remote_href": null,
      "publication_href": null,
      "content_counts": {
        "rpm": 0,
        "erratum": 0,
        "package_group": 0,
        "srpm": 0,
        "module_stream": 0
      },
      "mirroring_policy": "mirror_content_only",
      "id": 952181839,
      "name": "RHEL 6 x86_64",
      "label": "rhel_6_x86_64_label",
      "description": null,
      "content_view_versions": [],
      "last_sync": null,
      "content_view": {
        "id": 405955044,
        "name": "Published LIbrary view"
      },
      "content_view_version": {
        "id": 111397700,
        "name": "Published LIbrary view 2.0",
        "content_view_id": 405955044
      },
      "environment": null,
      "content_type": "yum",
      "url": "https://cdn.example.com/rhel/6/os",
      "arch": "x86_64",
      "os_versions": null,
      "content_id": "69",
      "generic_remote_options": null,
      "major": 6,
      "minor": "6Server",
      "product": {
        "id": 1073012828,
        "cp_id": "redhat",
        "name": "Red Hat Linux",
        "orphaned": false,
        "redhat": true,
        "sync_plan": null
      },
      "content_label": "rhel",
      "last_sync_words": null
    },
    {
      "backend_identifier": "8",
      "relative_path": "ACME_Corporation/dev/rhel_6_label",
      "container_repository_name": null,
      "full_path": "https://centos8-katello-devel.area51.example.com/pulp/content/ACME_Corporation/dev/rhel_6_label/",
      "library_instance_id": 103207400,
      "version_href": null,
      "remote_href": null,
      "publication_href": null,
      "content_counts": {
        "rpm": 0,
        "erratum": 0,
        "package_group": 0,
        "srpm": 0,
        "module_stream": 0
      },
      "mirroring_policy": "mirror_content_only",
      "id": 127576571,
      "name": "RHEL 6 x86_64",
      "label": "rhel_6_x86_64_label",
      "description": null,
      "content_view_versions": [],
      "last_sync": null,
      "content_view": {
        "id": 405955044,
        "name": "Published LIbrary view"
      },
      "content_view_version": {
        "id": 111397700,
        "name": "Published LIbrary view 2.0",
        "content_view_id": 405955044
      },
      "kt_environment": {
        "id": 292811013,
        "name": "Dev"
      },
      "content_type": "yum",
      "url": "https://cdn.example.com/rhel/6/os",
      "arch": "x86_64",
      "os_versions": null,
      "content_id": "69",
      "generic_remote_options": null,
      "major": 6,
      "minor": "6Server",
      "product": {
        "id": 1073012828,
        "cp_id": "redhat",
        "name": "Red Hat Linux",
        "orphaned": false,
        "redhat": true,
        "sync_plan": null
      },
      "content_label": "rhel",
      "last_sync_words": null
    }
  ]
}

Params

Param name Description
organization_id
optional

ID of an organization to show repositories in

Validations:

  • Must be a number.

product_id
optional

ID of a product to show repositories of

Validations:

  • Must be a number.

environment_id
optional

ID of an environment to show repositories in

Validations:

  • Must be a number.

content_view_id
optional

ID of a content view to show repositories in

Validations:

  • Must be a number.

content_view_version_id
optional

ID of a content view version to show repositories in

Validations:

  • Must be a number.

deb_id
optional

Id of a deb package to find repositories that contain the deb

Validations:

  • String

erratum_id
optional

Id of an erratum to find repositories that contain the erratum

Validations:

  • String

rpm_id
optional

Id of a rpm package to find repositories that contain the rpm

Validations:

  • String

file_id
optional

Id of a file to find repositories that contain the file

Validations:

  • String

ansible_collection_id
optional

Id of an ansible collection to find repositories that contain the ansible collection

Validations:

  • String

library
optional

show repositories in Library and the default content view

Validations:

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

archived
optional

show archived repositories

Validations:

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

content_type
optional

Limit the repository type. Available types endpoint: /katello/api/repositories/repository_types

Validations:

  • String

name
optional

name of the repository

Validations:

  • String

label
optional

label of the repository

Validations:

  • String

description
optional

description of the repository

Validations:

  • String

available_for
optional

interpret specified object to return only Repositories that can be associated with specified object. Only 'content_view' & 'content_view_version' are supported.

Validations:

  • String

with_content
optional

Filter repositories by content unit type (erratum, docker_tag, etc.). Check the “Indexed?” types here: /katello/api/repositories/repository_types

Validations:

  • String

download_policy
optional

limit to only repositories with this download policy

Validations:

  • Must be one of: immediate, on_demand.

username
optional

only show the repositories readable by this user with this username

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

Search fields

Field name Type Possible values
container_repository_name string
content_label string
content_type string
content_view_id integer
description text
distribution_arch string
distribution_bootable boolean
distribution_family string
distribution_variant string
distribution_version string
download_policy string
label string
name string
product string
product_id integer
product_name string
redhat true, false