# 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
Mostrar entornos en una organización

GET /katello/api/organizations/:organization_id/environments
Mostrar entornos en una organización

Parámetros

Nombre del parámetro Descripción
organization_id
requerido

identificador de la organización

Validations:

  • number.

library
opcional

establecer a verdadero, si solo desea ver entornos de biblioteca

Validations:

  • Must be one of: true, false.

name
opcional

filtrar solo entornos que contengan este nombre

Validations:

  • String


GET /katello/api/environments/:id
Mostrar un entorno

GET /katello/api/organizations/:organization_id/environments/:environment_id
Mostrar un entorno

Parámetros

Nombre del parámetro Descripción
id
requerido

ID del entorno

Validations:

  • number.

organization_id
opcional

ID de la organización

Validations:

  • number.


POST /katello/api/environments
Crear un entorno

POST /katello/api/organizations/:organization_id/environments
Crear un entorno en una organización

Parámetros

Nombre del parámetro Descripción
organization_id
requerido

nombre de la organización

Validations:

  • number.

name
requerido

nombre del entorno

Validations:

  • String

label
opcional

etiqueta del entorno

Validations:

  • String

description
opcional

descripción del entorno

Validations:

  • String

prior_id
requerido

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
Actualizar un entorno

PUT /katello/api/organizations/:organization_id/environments/:id
Actualizar un entorno en una organización

Parámetros

Nombre del parámetro Descripción
id
requerido

ID del entorno

Validations:

  • number.

organization_id
opcional

nombre de la organización

Validations:

  • number.

new_name
opcional

nuevo nombre para el entorno

Validations:

  • String

description
opcional

descripción del entorno

Validations:

  • String


DELETE /katello/api/environments/:id
Destruir un entorno

DELETE /katello/api/organizations/:organization_id/environments/:id
Destruir un entorno en una organización

Parámetros

Nombre del parámetro Descripción
id
requerido

ID del entorno

Validations:

  • number.

organization_id
opcional

identificador de la organización

Validations:

  • number.


GET /katello/api/organizations/:organization_id/environments/paths
Mostrar rutas de entornos

Parámetros

Nombre del parámetro Descripción
organization_id
opcional

identificador de la organización

Validations:

  • number.

permission_type
opcional

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

Parámetros

Nombre del parámetro Descripción
id
opcional

identificador del entorno

Validations:

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

organization_id
opcional

identificador de la organización

Validations:

  • String

content_view_id
opcional

identificador de vista de contenido

Validations:

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