GET /katello/api/organizations/:organization_id/content_views
List content views

GET /katello/api/content_views
List content views

Params

Param Name Description
organization_id
Required

organization identifier

Validations:

  • number.

environment_id
Optional

environment identifier

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

nondefault
Optional

Filter out default content views

Validations:

  • boolean

noncomposite
Optional

Filter out composite content views

Validations:

  • boolean

composite
Optional

Filter only composite content views

Validations:

  • boolean

without
Optional

Do not include this array of content views

Validations:

  • Must be an array of any type

name
Optional

Name of the content view

Validations:

  • String

search
Optional

Search string

Validations:

  • String

page
Optional

Page number, starting at 1

Validations:

  • number.

per_page
Optional

Number of results per page to return

Validations:

  • number.

order
Optional

Sort field and order, eg. 'name DESC'

Validations:

  • String

full_results
Optional

Whether or not to show all results

Validations:

  • boolean

sort
Optional

Hash version of 'order' param

Validations:

  • Hash

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


POST /katello/api/organizations/:organization_id/content_views
Create a content view

POST /katello/api/content_views
Create a content view

Params

Param Name Description
organization_id
Required

Organization identifier

Validations:

  • number.

name
Required

Name of the content view

Validations:

  • String

label
Optional

Content view label

Validations:

  • String

composite
Optional

Composite content view

Validations:

  • boolean

description
Optional

Description for the content view

Validations:

  • String

repository_ids
Optional

List of repository ids

Validations:

  • Must be an array of any type

component_ids
Optional

List of component content view version ids for composite views

Validations:

  • Must be an array of any type


PUT /katello/api/content_views/:id
Update a content view

Params

Param Name Description
id
Required

Content view identifier

Validations:

  • number.

name
Optional

New name for the content view

Validations:

  • String

description
Optional

Description for the content view

Validations:

  • String

repository_ids
Optional

List of repository ids

Validations:

  • Must be an array of any type

component_ids
Optional

List of component content view version ids for composite views

Validations:

  • Must be an array of any type


POST /katello/api/content_views/:id/publish
Publish a content view

Params

Param Name Description
id
Required

Content view identifier

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

description
Optional

Description for the new published content view version

Validations:

  • String


GET /katello/api/content_views/:id
Show a content view

Params

Param Name Description
id
Required

content view numeric identifier

Validations:

  • number.


GET /katello/api/content_views/:id/available_puppet_modules
Get puppet modules that are available to be added to the content view

Params

Param Name Description
id
Required

content view numeric identifier

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

name
Optional

module name to restrict modules for

Validations:

  • String


GET /katello/api/content_views/:id/available_puppet_module_names
Get puppet modules names that are available to be added to the content view

Params

Param Name Description
id
Required

content view numeric identifier

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..


DELETE /katello/api/content_views/:id/environments/:environment_id
Remove a content view from an environment

Params

Param Name Description
id
Required

content view numeric identifier

Validations:

  • number.

environment_id
Required

environment numeric identifier

Validations:

  • number.


PUT /katello/api/content_views/:id/remove
Remove versions and/or environments from a content view and reassign systems and keys

Params

Param Name Description
id
Required

content view numeric identifier

Validations:

  • number.

environment_ids
Optional

environment numeric identifiers to be removed

Validations:

  • number.

content_view_version_ids
Optional

content view version identifiers to be deleted

Validations:

  • number.

system_content_view_id
Optional

content view to reassign orphaned systems to

Validations:

  • number.

system_environment_id
Optional

environment to reassign orphaned systems to

Validations:

  • number.

key_content_view_id
Optional

content view to reassign orphaned activation keys to

Validations:

  • number.

key_environment_id
Optional

environment to reassign orphaned activation keys to

Validations:

  • number.


DELETE /katello/api/content_views/:id
Delete a content view

Params

Param Name Description
id
Required

content view numeric identifier

Validations:

  • number.


POST /katello/api/content_views/:id/copy
Make copy of a content view

Params

Param Name Description
id
Required

Content view numeric identifier

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

name
Required

New content view name

Validations:

  • String