GET /katello/api/organizations/114267492/content_views 204
| Param name | Description |
|---|---|
|
organization_id optional |
organization identifier Validations:
|
|
environment_id optional |
environment identifier Validations:
|
|
nondefault optional |
Filter out default content views Validations:
|
|
noncomposite optional |
Filter out composite content views Validations:
|
|
composite optional |
Filter only composite content views Validations:
|
|
without optional |
Do not include this array of content views Validations:
|
|
name optional |
Name of the content view Validations:
|
|
label optional |
Label of the content view Validations:
|
|
include_generated optional |
Include content views generated by imports/exports. Defaults to false 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 |
|---|---|---|
| composite | boolean | |
| default | boolean | |
| generated_for | integer | |
| label | string | |
| name | string | |
| organization_id | integer |
POST /katello/api/organizations/114267492/content_views
{
"name": "My View",
"label": "My_View",
"description": "Cool",
"solve_dependencies": true,
"content_view": {
"name": "My View",
"label": "My_View",
"description": "Cool",
"solve_dependencies": true
}
}
201
{
"content_host_count": 0,
"composite": false,
"component_ids": [],
"default": false,
"version_count": 0,
"latest_version": null,
"latest_version_id": null,
"auto_publish": false,
"solve_dependencies": true,
"import_only": false,
"generated_for": "none",
"related_cv_count": 0,
"related_composite_cvs": [],
"repository_ids": [],
"id": 1058174850,
"name": "My View",
"label": "My_View",
"description": "Cool",
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"created_at": "2022-11-08 19:29:16 UTC",
"updated_at": "2022-11-08 19:29:16 UTC",
"last_task": null,
"latest_version_environments": [],
"repositories": [],
"versions": [],
"components": [],
"content_view_components": [],
"activation_keys": [],
"hosts": [],
"next_version": "1.0",
"last_published": null,
"environments": [],
"duplicate_repositories_to_publish": [],
"errors": null
}
| Param name | Description |
|---|---|
|
organization_id required |
Organization identifier Validations:
|
|
name required |
Name of the content view Validations:
|
|
label optional |
Content view label Validations:
|
|
composite optional |
Composite content view Validations:
|
|
description optional |
Description for the content view Validations:
|
|
repository_ids optional |
List of repository ids Validations:
|
|
component_ids optional |
List of component content view version ids for composite views Validations:
|
|
auto_publish optional |
Enable/Disable auto publish of composite view Validations:
|
|
solve_dependencies optional |
Solve RPM dependencies by default on Content View publish, defaults to false Validations:
|
|
import_only optional |
Designate this Content View for importing from upstream servers only. Defaults to false Validations:
|
PUT /katello/api/content_views/64601712
{
"content_view": {
"component_ids": [
998596613,
998596614
]
}
}
422
{
"displayMessage": "Validation failed: Base Another component already includes content view with ID 405955044",
"errors": {
"content_view_components.base": [
"Another component already includes content view with ID 405955044"
]
}
}
| Param name | Description |
|---|---|
|
id required |
Content view identifier Validations:
|
|
name optional |
New name for the content view Validations:
|
|
description optional |
Description for the content view Validations:
|
|
repository_ids optional |
List of repository ids Validations:
|
|
component_ids optional |
List of component content view version ids for composite views Validations:
|
|
auto_publish optional |
Enable/Disable auto publish of composite view Validations:
|
|
solve_dependencies optional |
Solve RPM dependencies by default on Content View publish, defaults to false Validations:
|
|
import_only optional |
Designate this Content View for importing from upstream servers only. Defaults to false Validations:
|
POST /katello/api/content_views/909058347/publish
{
"minor": 1,
"content_view": {}
}
400
{
"displayMessage": "Both major and minor parameters have to be used to override a CV version",
"errors": [
"Both major and minor parameters have to be used to override a CV version"
]
}
| Param name | Description |
|---|---|
|
id required |
Content view identifier Validations:
|
|
description optional |
Description for the new published content view version Validations:
|
|
major optional |
Override the major version number Validations:
|
|
minor optional |
Override the minor version number Validations:
|
|
environment_ids optional |
Identifiers for Lifecycle Environment Validations:
|
|
is_force_promote optional |
force content view promotion and bypass lifecycle environment restriction Validations:
|
|
repos_units optional |
Specify the list of units in each repo Validations:
|
|
repos_units[label] required |
repo label Validations:
|
|
repos_units[rpm_filenames] required |
list of rpm filename strings to include in published version Validations:
|
GET /katello/api/content_views/419082953
200
{
"content_host_count": 0,
"composite": false,
"component_ids": [],
"default": false,
"version_count": 1,
"latest_version": "3.0",
"latest_version_id": 234564707,
"auto_publish": false,
"solve_dependencies": false,
"import_only": false,
"generated_for": "none",
"related_cv_count": 0,
"related_composite_cvs": [],
"repository_ids": [],
"id": 419082953,
"name": "Published Library - dev - staging view",
"label": "published_dev_staging_view",
"description": "A content view",
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"created_at": "2022-11-08 19:09:32 UTC",
"updated_at": "2022-11-08 19:09:32 UTC",
"last_task": null,
"latest_version_environments": [
{
"id": 562075838,
"name": "Library",
"label": "library_label"
},
{
"id": 292811013,
"name": "Dev",
"label": "dev_label"
},
{
"id": 1028819239,
"name": "Staging",
"label": "staging_label"
}
],
"repositories": [],
"versions": [
{
"id": 234564707,
"version": "3.0",
"published": "2022-11-08 19:09:32 UTC",
"environment_ids": [
562075838,
292811013,
1028819239
]
}
],
"components": [],
"content_view_components": [],
"activation_keys": [
{
"id": 878475814,
"name": "Lib Dev Stating Activation Key"
}
],
"hosts": [],
"next_version": "4.0",
"last_published": "2022-11-08 19:09:32 UTC",
"environments": [
{
"id": 562075838,
"label": "library_label",
"name": "library_label",
"activation_keys": [],
"hosts": [],
"permissions": {
"readable": true
}
},
{
"id": 292811013,
"label": "dev_label",
"name": "dev_label",
"activation_keys": [
878475814
],
"hosts": [],
"permissions": {
"readable": true
}
},
{
"id": 1028819239,
"label": "staging_label",
"name": "staging_label",
"activation_keys": [],
"hosts": [],
"permissions": {
"readable": true
}
}
],
"duplicate_repositories_to_publish": [],
"errors": null
}
| Param name | Description |
|---|---|
|
id required |
content view numeric identifier Validations:
|
DELETE /katello/api/content_views/909058347/environments/1028819239
{
"content_view": {}
}
400
{
"displayMessage": "Content view 'Published Library and dev view' is not in lifecycle environment 'Staging'.",
"errors": [
"Content view 'Published Library and dev view' is not in lifecycle environment 'Staging'."
]
}
| Param name | Description |
|---|---|
|
id required |
content view numeric identifier Validations:
|
|
environment_id required |
environment numeric identifier Validations:
|
PUT /katello/api/content_views/419082953/remove
{
"environment_ids": [
292811013
],
"key_content_view_id": 419082953,
"key_environment_id": 1028819239,
"content_view": {}
}
204
| Param name | Description |
|---|---|
|
id required |
content view numeric identifier Validations:
|
|
environment_ids optional |
environment numeric identifiers to be removed Validations:
|
|
content_view_version_ids optional |
content view version identifiers to be deleted Validations:
|
|
system_content_view_id optional |
content view to reassign orphaned systems to Validations:
|
|
system_environment_id optional |
environment to reassign orphaned systems to Validations:
|
|
key_content_view_id optional |
content view to reassign orphaned activation keys to Validations:
|
|
key_environment_id optional |
environment to reassign orphaned activation keys to Validations:
|
|
destroy_content_view optional |
delete the content view with all the versions and environments Validations:
|
PUT /katello/api/content_views/419082953/bulk_delete_versions
{
"key_content_view_id": 419082953,
"key_environment_id": 562075838,
"system_content_view_id": 419082953,
"system_environment_id": 562075838,
"bulk_content_view_version_ids": {
"included": {
"ids": [
234564707
]
}
},
"content_view": {}
}
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 |
|---|---|
|
included required |
Versions to exclusively include in the action Validations:
|
|
included[search] optional , nil allowed |
Search string for versions to perform an action on Validations:
|
|
included[ids] optional , nil allowed |
List of versions to perform an action on Validations:
|
|
excluded required |
Versions to explicitly exclude in the action. All other versions will be included in the action, unless an included parameter is passed as well. Validations:
|
|
excluded[ids] optional , nil allowed |
List of versions to exclude and not run an action on Validations:
|
|
id required |
content view numeric identifier Validations:
|
|
system_content_view_id optional |
content view to reassign orphaned systems to Validations:
|
|
system_environment_id optional |
environment to reassign orphaned systems to Validations:
|
|
key_content_view_id optional |
content view to reassign orphaned activation keys to Validations:
|
|
key_environment_id optional |
environment to reassign orphaned activation keys to Validations:
|
PUT /katello/api/content_views/1058174851/remove_filters
{
"filter_ids": [
703096855
],
"content_view": {}
}
200
{
"content_host_count": 0,
"composite": false,
"component_ids": [],
"default": false,
"version_count": 0,
"latest_version": null,
"latest_version_id": null,
"auto_publish": false,
"solve_dependencies": false,
"import_only": false,
"generated_for": "none",
"related_cv_count": 0,
"related_composite_cvs": [],
"repository_ids": [],
"id": 1058174851,
"name": "Cat",
"label": "Cat",
"description": null,
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"created_at": "2022-11-08 19:29:20 UTC",
"updated_at": "2022-11-08 19:29:20 UTC",
"last_task": null,
"latest_version_environments": [],
"repositories": [],
"versions": [],
"components": [],
"content_view_components": [],
"activation_keys": [],
"hosts": [],
"next_version": "1.0",
"last_published": null,
"environments": [],
"duplicate_repositories_to_publish": [],
"errors": null
}
| Param name | Description |
|---|---|
|
id required |
content view numeric identifier Validations:
|
|
filter_ids required |
filter identifiers Validations:
|
DELETE /katello/api/content_views/1058174853
{
"content_view": {}
}
202
{
"id": "8fe1160e-c332-41db-bb7d-18a92821f7fc",
"label": "Actions::Katello::ContentView::Destroy",
"pending": false,
"action": "Delete content view 'Cat'; organization 'Empty Organization'",
"username": "secret_admin",
"started_at": "2022-11-08 19:29:21 UTC",
"ended_at": "2022-11-08 19:29:21 UTC",
"state": "stopped",
"result": "success",
"progress": 1.0,
"input": {
"content_view": {
"id": 1058174853,
"name": "Cat",
"label": "Cat"
},
"organization": {
"id": 114267492,
"name": "Empty Organization",
"label": "Empty_Organization"
},
"services_checked": [
"pulp3"
],
"remote_user": "admin",
"remote_cp_user": "admin"
},
"output": {},
"humanized": {
"action": "Delete",
"input": [
[
"content_view",
{
"text": "content view 'Cat'",
"link": "/content_views/1058174853/versions"
}
],
[
"organization",
{
"text": "organization 'Empty Organization'",
"link": "/organizations/114267492/edit"
}
]
],
"output": "",
"errors": []
},
"cli_example": null,
"start_at": "2022-11-08 19:29:21 UTC",
"available_actions": {
"cancellable": false,
"resumable": false
}
}
| Param name | Description |
|---|---|
|
id required |
content view numeric identifier Validations:
|
POST /katello/api/content_views/419082953/copy
{
"name": "My New View",
"content_view": {
"name": "My New View"
}
}
201
{
"composite": false,
"component_ids": [],
"default": false,
"version_count": 0,
"latest_version": null,
"latest_version_id": null,
"auto_publish": false,
"solve_dependencies": false,
"import_only": false,
"generated_for": "none",
"related_cv_count": 0,
"related_composite_cvs": [],
"repository_ids": [],
"id": 1058174852,
"name": "My New View",
"label": "My_New_View",
"description": "A content view",
"organization_id": 114267492,
"organization": {
"name": "Empty Organization",
"label": "Empty_Organization",
"id": 114267492
},
"created_at": "2022-11-08 19:29:21 UTC",
"updated_at": "2022-11-08 19:29:21 UTC",
"last_task": null,
"latest_version_environments": [],
"repositories": [],
"versions": [],
"components": [],
"content_view_components": [],
"activation_keys": [],
"hosts": [],
"next_version": "1.0",
"last_published": null,
"environments": []
}
| Param name | Description |
|---|---|
|
id required |
Content view numeric identifier Validations:
|
|
name required |
New content view name Validations:
|