# 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
Elenca gli ambienti in una organizzazione

GET /katello/api/organizations/:organization_id/environments
Elenca gli ambienti in una organizzazione

Params

Param Name Description
organization_id
Required

identificatore organizzazione

Validations:

  • number.

library
Optional

imposta su vero se desideri visualizzare solo gli ambienti libreria

Validations:

  • Must be one of: true, false.

name
Optional

filtra solo gli ambienti con questo nome

Validations:

  • String


GET /katello/api/environments/:id
Mostra un ambiente

GET /katello/api/organizations/:organization_id/environments/:environment_id
Mostra un ambiente

Params

Param Name Description
id
Required

ID dell'ambiente

Validations:

  • number.

organization_id
Optional

ID dell'organizzazione

Validations:

  • number.


POST /katello/api/environments
Crea un ambiente

POST /katello/api/organizations/:organization_id/environments
Crea un ambiente in una organizzazione

Params

Param Name Description
organization_id
Required

nome organizzazione

Validations:

  • number.

name
Required

nome dell'ambiente

Validations:

  • String

label
Optional

etichetta dell'ambiente

Validations:

  • String

description
Optional

descrizione dell'ambiente

Validations:

  • String

prior_id
Required

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
Aggiorna un ambiente

PUT /katello/api/organizations/:organization_id/environments/:id
Aggiorna ambiente in una organizzazione

Params

Param Name Description
id
Required

ID dell'ambiente

Validations:

  • number.

organization_id
Optional

nome dell'organizzazione

Validations:

  • number.

new_name
Optional

nuovo nome da conferire all'ambiente

Validations:

  • String

description
Optional

descrizione dell'ambiente

Validations:

  • String


DELETE /katello/api/environments/:id
Elimina un ambiente

DELETE /katello/api/organizations/:organization_id/environments/:id
Elimina ambiente in una organizzazione

Params

Param Name Description
id
Required

ID dell'ambiente

Validations:

  • number.

organization_id
Optional

identificatore organizzazione

Validations:

  • number.


GET /katello/api/organizations/:organization_id/environments/paths
Elenca i percorsi dell'ambiente

Params

Param Name Description
organization_id
Optional

identificatore organizzazione

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

Params

Param Name Description
id
Optional

identificatore ambiente

Validations:

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

organization_id
Optional

identificatore organizzazione

Validations:

  • String

content_view_id
Optional

indentificatore visualizzazione del contenuto

Validations:

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