Examples

POST /katello/api/organizations/114267492/content_views
{
  "name": "My View",
  "label": "My_View",
  "description": "Cool",
  "import_only": true,
  "content_view": {
    "name": "My View",
    "label": "My_View",
    "description": "Cool",
    "import_only": 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": false,
  "import_only": true,
  "generated_for": "none",
  "related_cv_count": 0,
  "related_composite_cvs": [],
  "needs_publish": true,
  "filtered": false,
  "repository_ids": [],
  "id": 1058174708,
  "name": "My View",
  "label": "My_View",
  "description": "Cool",
  "organization_id": 114267492,
  "organization": {
    "name": "Empty Organization",
    "label": "Empty_Organization",
    "id": 114267492
  },
  "created_at": "2023-08-23 20:01:08 UTC",
  "updated_at": "2023-08-23 20:01:08 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
}

Params

Param name Description
organization_id
required

Organization identifier

Validations:

  • Must be a number.

name
required

Name of the content view

Validations:

  • String

label
optional

Content view label

Validations:

  • String

composite
optional

Composite content view

Validations:

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

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

auto_publish
optional

Enable/Disable auto publish of composite view

Validations:

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

solve_dependencies
optional

Solve RPM dependencies by default on Content View publish, defaults to false

Validations:

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

import_only
optional

Designate this Content View for importing from upstream servers only. Defaults to false

Validations:

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