GET /katello/api/organizations/114267492/products
200
{
"total": 9,
"subtotal": 9,
"selectable": 9,
"page": 1,
"per_page": 20,
"error": null,
"search": null,
"sort": {
"by": "name",
"order": "asc"
},
"results": [
{
"id": 867224909,
"cp_id": "debian",
"name": "Debian",
"label": "debian_label",
"description": "The universal operating system",
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 5
},
{
"id": 905280015,
"cp_id": "empty_product",
"name": "Empty Product",
"label": "empty_product",
"description": null,
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 0
},
{
"id": 56996862,
"cp_id": "empty_product_2",
"name": "Empty Product_2",
"label": "empty_product_2",
"description": null,
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 0
},
{
"id": 601244438,
"cp_id": "redhat_empty",
"name": "Empty Red Hat Linux",
"label": "redhat_empty_label",
"description": "A more Enterprisy but empty fedora",
"provider_id": 1073012828,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 0
},
{
"id": 785257261,
"cp_id": "fedora",
"name": "Fedora",
"label": "fedora_label",
"description": "An open source Linux distribution.",
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 13
},
{
"id": 921304035,
"cp_id": "oracle",
"name": "Oracle",
"label": "oracle_label",
"description": "An open source Linux distribution.",
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 1
},
{
"id": 785658510,
"cp_id": "ostree",
"name": "OSTree Product",
"label": "ostree_product",
"description": "A product for ostree content",
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 0
},
{
"id": 516337990,
"cp_id": "puppet",
"name": "Puppet Product",
"label": "puppet_product",
"description": "A product for puppet content",
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 3
},
{
"id": 1073012828,
"cp_id": "redhat",
"name": "Red Hat Linux",
"label": "redhat_label",
"description": "A more Enterprisy fedora",
"provider_id": 1073012828,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 3
}
]
}
| Param name | Description |
|---|---|
|
organization_id required |
Filter products by organization Validations:
|
|
subscription_id optional |
Filter products by subscription Validations:
|
|
name optional |
Filter products by name Validations:
|
|
enabled optional |
Return enabled products only Validations:
|
|
custom optional |
Return custom products only Validations:
|
|
redhat_only optional |
Return Red Hat (non-custom) products only Validations:
|
|
include_available_content optional |
Whether to include available content attribute in results Validations:
|
|
sync_plan_id optional |
Filter products by sync plan id Validations:
|
|
available_for optional |
Interpret specified object to return only Products that can be associated with specified object. Only 'sync_plan' is supported. Validations:
|
|
search optional |
Search string Validations:
|
|
page optional |
Page number, starting at 1 Validations:
|
|
per_page optional |
Number of results per page to return Validations:
|
|
order optional |
Sort field and order, eg. 'id DESC' Validations:
|
|
full_result optional |
Whether or not to show all results Validations:
|
|
sort_by optional |
Field to sort the results on Validations:
|
|
sort_order optional |
How to order the sorted results (e.g. ASC for ascending) Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| description | text | |
| label | string | |
| name | string | |
| organization_id | integer | |
| redhat | true, false |
POST /katello/api/products
{
"product": {
"name": "fedora product",
"description": "this is my cool new product.",
"label": "product_label"
},
"organization_id": 114267492
}
201
{
"sync_state_aggregated": "stopped",
"redhat": false,
"id": null,
"cp_id": null,
"name": "fedora product",
"label": "product_label",
"description": "this is my cool new product.",
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 0,
"created_at": null,
"updated_at": null,
"product_content": [],
"available_content": [],
"repositories": [],
"provider": {
"name": "Anonymous"
},
"sync_status": {
"id": null,
"product_id": null,
"progress": null,
"sync_id": null,
"state": null,
"raw_state": null,
"start_time": null,
"finish_time": null,
"duration": null,
"display_size": null,
"size": null,
"is_running": null,
"error_details": null
},
"permissions": {
"view_products": true,
"edit_products": true,
"destroy_products": true,
"sync_products": true
},
"published_content_view_ids": [],
"active_task_count": 0
}
| Param name | Description |
|---|---|
|
organization_id required |
ID of the organization Validations:
|
|
description optional |
Product description Validations:
|
|
gpg_key_id optional |
Identifier of the GPG key Validations:
|
|
ssl_ca_cert_id optional |
Idenifier of the SSL CA Cert Validations:
|
|
ssl_client_cert_id optional |
Identifier of the SSL Client Cert Validations:
|
|
ssl_client_key_id optional |
Identifier of the SSL Client Key Validations:
|
|
sync_plan_id optional , nil allowed |
Plan numeric identifier Validations:
|
|
name required |
Product name Validations:
|
|
label optional |
Validations:
|
GET /katello/api/products/785257261 204
| Param name | Description |
|---|---|
|
organization_id optional |
Organization ID Validations:
|
|
id required |
product numeric identifier Validations:
|
PUT /katello/api/products/785257261
{
"product": {
"name": "New Name",
"description": "Product Description",
"label": "product_label"
}
}
200
{
"sync_state_aggregated": "stopped",
"redhat": false,
"id": 785257261,
"cp_id": "fedora",
"name": "Fedora",
"label": "fedora_label",
"description": "An open source Linux distribution.",
"provider_id": 36826545,
"sync_plan_id": null,
"sync_summary": {},
"gpg_key_id": null,
"ssl_ca_cert_id": null,
"ssl_client_cert_id": null,
"ssl_client_key_id": null,
"sync_state": null,
"last_sync": null,
"last_sync_words": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"sync_plan": null,
"repository_count": 13,
"created_at": "2022-11-08 19:09:32 UTC",
"updated_at": "2022-11-08 19:09:32 UTC",
"product_content": [
{
"enabled": null,
"product_id": 785257261,
"content": {
"name": "Fedora",
"label": "fedora",
"vendor": null,
"content_url": "/pub/fedora/linux/releases/$releasever/Everything/$basearch/os",
"gpg_url": null,
"id": "1",
"type": null,
"gpgUrl": null,
"contentUrl": "/pub/fedora/linux/releases/$releasever/Everything/$basearch/os"
}
}
],
"available_content": [
{
"enabled": null,
"product_id": 785257261,
"content": {
"name": "Fedora",
"label": "fedora",
"vendor": null,
"content_url": "/pub/fedora/linux/releases/$releasever/Everything/$basearch/os",
"gpg_url": null,
"id": "1",
"type": null,
"gpgUrl": null,
"contentUrl": "/pub/fedora/linux/releases/$releasever/Everything/$basearch/os"
}
}
],
"repositories": [
{
"name": "Fedora 17 x86_64",
"id": 367202338
},
{
"name": "Fedora 17 x86_64",
"id": 841170190
},
{
"name": "Fedora 17 x86_64 duplicate",
"id": 792129035
},
{
"name": "Feedless Fedora 17 x86_64",
"id": 643402541
},
{
"name": "Fedora 17 no arch",
"id": 242028598
},
{
"name": "Fedora 17 x86_64 unpublished",
"id": 841753487
},
{
"name": "Fedora 17 x86_64 2",
"id": 860533889
},
{
"name": "Source rpm repo",
"id": 504073478
},
{
"name": "My Files",
"id": 921033349
},
{
"name": "Pulp3 File 1",
"id": 752069227
},
{
"name": "Pulp3 Ansible Collection 1",
"id": 269989997
},
{
"name": "Pulp3 Docker 1",
"id": 536318648
},
{
"name": "Pulp3 Python 1",
"id": 16447009
},
{
"name": "Pulp3 OSTree 1",
"id": 145295987
}
],
"provider": {
"name": "Anonymous"
},
"sync_status": {
"id": null,
"product_id": null,
"progress": null,
"sync_id": null,
"state": null,
"raw_state": null,
"start_time": null,
"finish_time": null,
"duration": null,
"display_size": null,
"size": null,
"is_running": null,
"error_details": null
},
"permissions": {
"view_products": true,
"edit_products": true,
"destroy_products": false,
"sync_products": true
},
"published_content_view_ids": [
909058347,
405955044
],
"active_task_count": 0
}
| Param name | Description |
|---|---|
|
id required |
product numeric identifier Validations:
|
|
description optional |
Product description Validations:
|
|
gpg_key_id optional |
Identifier of the GPG key Validations:
|
|
ssl_ca_cert_id optional |
Idenifier of the SSL CA Cert Validations:
|
|
ssl_client_cert_id optional |
Identifier of the SSL Client Cert Validations:
|
|
ssl_client_key_id optional |
Identifier of the SSL Client Key Validations:
|
|
sync_plan_id optional , nil allowed |
Plan numeric identifier Validations:
|
|
name optional |
Product name Validations:
|
DELETE /katello/api/products/785257261
{
"product": {}
}
202
{
"id": null,
"label": null,
"pending": null,
"username": null,
"started_at": null,
"ended_at": null,
"state": null,
"result": null,
"progress": null,
"input": null,
"output": {},
"humanized": null,
"cli_example": null,
"available_actions": {
"cancellable": null,
"resumable": null
}
}
| Param name | Description |
|---|---|
|
id optional |
product numeric identifier Validations:
|
POST /katello/api/products/905280015/sync
{
"product": {}
}
422
{
"displayMessage": "Unable to synchronize any repository. You either do not have the permission to synchronize or the selected repositories do not have a feed url.",
"errors": [
"Unable to synchronize any repository. You either do not have the permission to synchronize or the selected repositories do not have a feed url."
]
}
| Param name | Description |
|---|---|
|
id required |
product ID Validations:
|