Examples

GET /katello/api/organizations/114267492/content_views
200
{
  "total": 1,
  "subtotal": 1,
  "selectable": 1,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": "name",
    "order": "asc"
  },
  "results": [
    {
      "composite": true,
      "component_ids": [],
      "default": false,
      "version_count": 1,
      "latest_version": "1.0",
      "latest_version_id": 323882142,
      "auto_publish": true,
      "solve_dependencies": false,
      "import_only": false,
      "generated_for": "none",
      "related_cv_count": 0,
      "related_composite_cvs": [],
      "needs_publish": null,
      "filtered": false,
      "repository_ids": [],
      "id": 64601712,
      "name": "Composite view",
      "label": "composite_view",
      "description": "A content view",
      "organization_id": 114267492,
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "created_at": "2023-08-23 19:55:45 UTC",
      "updated_at": "2023-08-23 19:55:45 UTC",
      "last_task": null,
      "latest_version_environments": [
        {
          "id": 562075838,
          "name": "Library",
          "label": "library_label"
        }
      ],
      "repositories": [],
      "versions": [
        {
          "id": 323882142,
          "version": "1.0",
          "published": "2023-08-23 19:55:45 UTC",
          "description": null,
          "environment_ids": [
            562075838
          ],
          "filters_applied": null,
          "published_at_words": "5 minutes"
        }
      ],
      "components": [],
      "content_view_components": [],
      "activation_keys": [],
      "hosts": [],
      "next_version": "2.0",
      "last_published": "2023-08-23 19:55:45 UTC",
      "environments": [
        {
          "id": 562075838,
          "label": "library_label",
          "name": "Library",
          "activation_keys": [],
          "hosts": [],
          "permissions": {
            "readable": true
          }
        }
      ]
    }
  ]
}

Params

Param name Description
organization_id
optional

organization identifier

Validations:

  • Must be a number.

environment_id
optional

environment identifier

Validations:

  • Must be a number.

nondefault
optional

Filter out default content views

Validations:

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

noncomposite
optional

Filter out composite content views

Validations:

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

composite
optional

Filter only composite content views

Validations:

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

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

label
optional

Label of the content view

Validations:

  • String

include_generated
optional

Include content views generated by imports/exports. Defaults to false

Validations:

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

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
composite boolean
default boolean
generated_for integer
label string
name string
organization_id integer