GET /katello/api/content_view_environments
List content view environments

Examples

GET /katello/api/content_view_environments
200
{
  "total": 12,
  "subtotal": 12,
  "selectable": 12,
  "page": 1,
  "per_page": 20,
  "error": null,
  "search": null,
  "sort": {
    "by": "id",
    "order": "asc"
  },
  "results": [
    {
      "default": false,
      "id": 9463430,
      "name": "Rolling view library environment",
      "label": "rolling_view_library",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 623031031,
        "name": "Rolling CV",
        "label": "rolling_cv",
        "default": false
      },
      "lifecycle_environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 23226134,
      "name": "Published Library and dev view dev environment",
      "label": "published_dev_view_dev",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 909058347,
        "name": "Published Library and dev view",
        "label": "published_dev_view",
        "default": false
      },
      "lifecycle_environment": {
        "id": 292811013,
        "name": "Dev",
        "label": "dev_label",
        "library": false
      },
      "environment": {
        "id": 292811013,
        "name": "Dev",
        "label": "dev_label",
        "library": false
      },
      "activation_keys_count": 0,
      "hosts_count": 1,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 23784056,
      "name": "Published acme view dev environment",
      "label": "published_acme_view_dev",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 30237652,
        "name": "ACME Default ContentView",
        "label": "org_default_label",
        "default": true
      },
      "lifecycle_environment": {
        "id": 292811013,
        "name": "Dev",
        "label": "dev_label",
        "library": false
      },
      "environment": {
        "id": 292811013,
        "name": "Dev",
        "label": "dev_label",
        "library": false
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 232000441,
      "name": "Published Library Composite Content View Environment",
      "label": "library/composite_view",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 64601712,
        "name": "Composite view",
        "label": "composite_view",
        "default": false
      },
      "lifecycle_environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 263550601,
      "name": "Published Library - staging- dev view staging environment",
      "label": "library_dev_staging_view_staging",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 419082953,
        "name": "Published Library - dev - staging view",
        "label": "published_dev_staging_view",
        "default": false
      },
      "lifecycle_environment": {
        "id": 1028819239,
        "name": "Staging",
        "label": "staging_label",
        "library": false
      },
      "environment": {
        "id": 1028819239,
        "name": "Staging",
        "label": "staging_label",
        "library": false
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 325543714,
      "name": "Published Library - staging- dev view staging environment",
      "label": "library_dev_staging_view_library",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 419082953,
        "name": "Published Library - dev - staging view",
        "label": "published_dev_staging_view",
        "default": false
      },
      "lifecycle_environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 350001148,
      "name": "Published Library and Dev view library environment",
      "label": "published_dev_view_library",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 909058347,
        "name": "Published Library and dev view",
        "label": "published_dev_view",
        "default": false
      },
      "lifecycle_environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": true,
      "id": 361865081,
      "name": "Published Library view library environment",
      "label": "library_default_view_library",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [
        {
          "id": 568942081,
          "name": "Simple Activation Key"
        },
        {
          "id": 734311356,
          "name": "Another Simple Activation Key"
        },
        {
          "id": 323709460,
          "name": "Yet Another Activation Key"
        },
        {
          "id": 939253911,
          "name": "And Yet Another Simple Activation Key"
        },
        {
          "id": 757667888,
          "name": "Activation Key"
        }
      ],
      "hostgroups": [],
      "content_view": {
        "id": 30237652,
        "name": "ACME Default ContentView",
        "label": "org_default_label",
        "default": true
      },
      "lifecycle_environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "activation_keys_count": 5,
      "hosts_count": 2,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 557819232,
      "name": "Debian content view test environment",
      "label": "debian_cv_test",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 597832364,
        "name": "Debian Default Content View",
        "label": "debian_default_contentview_label",
        "default": true
      },
      "lifecycle_environment": {
        "id": 411008527,
        "name": "Test_env",
        "label": "test_label",
        "library": false
      },
      "environment": {
        "id": 411008527,
        "name": "Test_env",
        "label": "test_label",
        "library": false
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 720145956,
      "name": "Debian content view dev environment",
      "label": "debian_cv_dev",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 597832364,
        "name": "Debian Default Content View",
        "label": "debian_default_contentview_label",
        "default": true
      },
      "lifecycle_environment": {
        "id": 292811013,
        "name": "Dev",
        "label": "dev_label",
        "library": false
      },
      "environment": {
        "id": 292811013,
        "name": "Dev",
        "label": "dev_label",
        "library": false
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 801054860,
      "name": "Published Library - staging- dev view staging environment",
      "label": "library_dev_staging_view_dev",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [
        {
          "id": 878475814,
          "name": "Lib Dev Staging Activation Key"
        }
      ],
      "hostgroups": [],
      "content_view": {
        "id": 419082953,
        "name": "Published Library - dev - staging view",
        "label": "published_dev_staging_view",
        "default": false
      },
      "lifecycle_environment": {
        "id": 292811013,
        "name": "Dev",
        "label": "dev_label",
        "library": false
      },
      "environment": {
        "id": 292811013,
        "name": "Dev",
        "label": "dev_label",
        "library": false
      },
      "activation_keys_count": 1,
      "hosts_count": 0,
      "hostgroups_count": 0
    },
    {
      "default": false,
      "id": 881278656,
      "name": "Published Library view library environment",
      "label": "published_library_view_library",
      "created_at": "2026-11-03 08:05:52 UTC",
      "updated_at": "2026-11-03 08:05:52 UTC",
      "organization": {
        "name": "Empty Organization",
        "label": "Empty_Organization",
        "id": 114267492
      },
      "activation_keys": [],
      "hostgroups": [],
      "content_view": {
        "id": 405955044,
        "name": "Published LIbrary view",
        "label": "published_library_view",
        "default": false
      },
      "lifecycle_environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "environment": {
        "id": 562075838,
        "name": "Library",
        "label": "library_label",
        "library": true
      },
      "activation_keys_count": 0,
      "hosts_count": 0,
      "hostgroups_count": 0
    }
  ]
}

Params

Param name Description
organization_id
optional

organization identifier

Validations:

  • Must be a number.

lifecycle_environment_id
optional

environment identifier

Validations:

  • Must be a number.

content_view_id
optional

Content view identifier

Validations:

  • Must be a number.

activation_key_id
optional

Activation key identifier

Validations:

  • Must be a number.

host_id
optional

Host identifier

Validations:

  • Must be a number.

hostgroup_id
optional

Host group identifier

Validations:

  • Must be a number.

content_source_id
optional

Content source identifier to filter by available lifecycle environments

Validations:

  • Must be a number.

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


GET /katello/api/content_view_environments/:id
Show a content view environment

Examples

GET /katello/api/content_view_environments/350001148
200
{
  "default": false,
  "id": 350001148,
  "name": "Published Library and Dev view library environment",
  "label": "published_dev_view_library",
  "created_at": "2026-11-03 08:05:52 UTC",
  "updated_at": "2026-11-03 08:05:52 UTC",
  "organization": {
    "name": "Empty Organization",
    "label": "Empty_Organization",
    "id": 114267492
  },
  "activation_keys": [],
  "hostgroups": [],
  "content_view": {
    "id": 909058347,
    "name": "Published Library and dev view",
    "label": "published_dev_view",
    "default": false
  },
  "lifecycle_environment": {
    "id": 562075838,
    "name": "Library",
    "label": "library_label",
    "library": true
  },
  "environment": {
    "id": 562075838,
    "name": "Library",
    "label": "library_label",
    "library": true
  },
  "activation_keys_count": 0,
  "hosts_count": 0,
  "hostgroups_count": 0
}

Params

Param name Description
id
required

Content view environment identifier

Validations:

  • Must be a number.