# Description

An environment is a basic organization structure that groups systems, products, repositories, etc. Every system belongs to one environment and it's isolated inside so that it can see only content that is in its environment.

## Chains

Environments are ordered into chains and their content (propducts, repositories, tempaltes, packages) can be moved to an environment only from its prior environment. You can have for example chain like:

Library -> Development -> Testing -> Production

Each change in an environment is done through a changeset in an action called promotion.

## Library

Library is a special environment that has no ascendant: All the content starts in this environment. More chains can start from the library environment but no further branching of a chain is enabled.


GET /katello/api/environments
Umgebungen in Organisation auflisten

GET /katello/api/organizations/:organization_id/environments
Umgebungen in Organisation auflisten

Parameter

Parametername Beschreibung
organization_id
verpflichtend

Organisations-ID

Validations:

  • number.

library
optional

“true” angeben, um nur Library-Umgebungen zu sehen

Validations:

  • Must be one of: true, false.

name
optional

nur Umgebungen mit diesem Namen filtern

Validations:

  • String


GET /katello/api/environments/:id
Umgebung anzeigen

GET /katello/api/organizations/:organization_id/environments/:environment_id
Umgebung anzeigen

Parameter

Parametername Beschreibung
id
verpflichtend

ID der Umgebung

Validations:

  • number.

organization_id
optional

ID der Organisation

Validations:

  • number.


POST /katello/api/environments
Umgebung erstellen

POST /katello/api/organizations/:organization_id/environments
Umgebung in einer Organisation erstellen

Parameter

Parametername Beschreibung
organization_id
verpflichtend

Name der Organisation

Validations:

  • number.

name
verpflichtend

Name der Umgebung

Validations:

  • String

label
optional

Kennung der Umgebung

Validations:

  • String

description
optional

Beschreibung der Umgebung

Validations:

  • String

prior_id
verpflichtend

ID of an environment that is prior to the new environment in the chain. It has to be either the ID of Library or the ID of an environment at the end of a chain.

Validations:

  • Integer


PUT /katello/api/environments/:id
Umgebung aktualisieren

PUT /katello/api/organizations/:organization_id/environments/:id
Umgebung in einer Organisation aktualisieren

Parameter

Parametername Beschreibung
id
verpflichtend

ID der Umgebung

Validations:

  • number.

organization_id
optional

Name der Organisation

Validations:

  • number.

new_name
optional

Neuer Name für die Umgebung

Validations:

  • String

description
optional

Beschreibung der Umgebung

Validations:

  • String


DELETE /katello/api/environments/:id
Umgebung löschen

DELETE /katello/api/organizations/:organization_id/environments/:id
Umgebung in einer Organisation löschen

Parameter

Parametername Beschreibung
id
verpflichtend

ID der Umgebung

Validations:

  • number.

organization_id
optional

Organisations-ID

Validations:

  • number.


GET /katello/api/organizations/:organization_id/environments/paths
Umgebungspfade auflisten

Parameter

Parametername Beschreibung
organization_id
optional

Organisations-ID

Validations:

  • number.

permission_type
optional

The associated permission type. One of (readable | promotable) Default: readable

Validations:

  • String


GET /katello/api/organizations/:organization_id/environments/:id/repositories
List repositories available in the environment

Parameter

Parametername Beschreibung
id
optional

Umgebungs-ID

Validations:

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

organization_id
optional

Organisations-ID

Validations:

  • String

content_view_id
optional

Inhaltsansichts-ID

Validations:

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