# 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
조직에 있는 환경 목록 나열

GET /katello/api/organizations/:organization_id/environments
조직에 있는 환경 목록 나열

Params

Param Name Description
organization_id
Required

조직 ID

Validations:

  • number.

library
Optional

라이브러리 환경만 확인하려면 true로 설정

Validations:

  • Must be one of: true, false.

name
Optional

이름이 포함환 환경만 필터링

Validations:

  • String


GET /katello/api/environments/:id
환경 표시

GET /katello/api/organizations/:organization_id/environments/:environment_id
환경 표시

Params

Param Name Description
id
Required

환경 ID

Validations:

  • number.

organization_id
Optional

조직 ID

Validations:

  • number.


POST /katello/api/environments
환경 생성

POST /katello/api/organizations/:organization_id/environments
조직에 있는 환경 생성

Params

Param Name Description
organization_id
Required

조직 이름

Validations:

  • number.

name
Required

환경 이름

Validations:

  • String

label
Optional

환경 레이블

Validations:

  • String

description
Optional

환경 설명

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
환경 업데이트

PUT /katello/api/organizations/:organization_id/environments/:id
조직에 있는 환경 업데이트

Params

Param Name Description
id
Required

환경 ID

Validations:

  • number.

organization_id
Optional

조직 이름

Validations:

  • number.

new_name
Optional

환경에 지정할 새 이름

Validations:

  • String

description
Optional

환경 설명

Validations:

  • String


DELETE /katello/api/environments/:id
환경 삭제

DELETE /katello/api/organizations/:organization_id/environments/:id
조직에서 환경 삭제

Params

Param Name Description
id
Required

환경 ID

Validations:

  • number.

organization_id
Optional

조직 ID

Validations:

  • number.


GET /katello/api/organizations/:organization_id/environments/paths
환경 경로 목록 나열

Params

Param Name Description
organization_id
Optional

조직 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

Params

Param Name Description
id
Optional

환경 ID

Validations:

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

organization_id
Optional

조직 ID

Validations:

  • String

content_view_id
Optional

컨텐츠 뷰 ID

Validations:

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