# Description
An environment is a basic organization structure that groups hosts, products, repositories, etc. Every host 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.
Nazwa parametru | Opis |
---|---|
organization_id opcjonalny |
organization identifier Validations:
|
library opcjonalny |
set true if you want to see only library environments Validations:
|
name opcjonalny |
filter only environments containing this name Validations:
|
search opcjonalny |
Search string Validations:
|
page opcjonalny |
Page number, starting at 1 Validations:
|
per_page opcjonalny |
Number of results per page to return Validations:
|
order opcjonalny |
Sort field and order, eg. 'name DESC' Validations:
|
full_result opcjonalny |
Whether or not to show all results Validations:
|
sort opcjonalny |
Hash version of 'order' param Validations:
|
sort[by] opcjonalny |
Field to sort the results on Validations:
|
sort[order] opcjonalny |
How to order the sorted results (e.g. ASC for ascending) Validations:
|
Nazwa parametru | Opis |
---|---|
id wymagany |
ID of the environment Validations:
|
organization_id opcjonalny |
ID of the organization Validations:
|
Nazwa parametru | Opis |
---|---|
organization_id wymagany |
name of organization Validations:
|
name wymagany |
name of the environment Validations:
|
label opcjonalny |
label of the environment Validations:
|
description opcjonalny |
description of the environment Validations:
|
prior_id wymagany |
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:
|
Nazwa parametru | Opis |
---|---|
id wymagany |
ID of the environment Validations:
|
organization_id opcjonalny |
name of the organization Validations:
|
new_name opcjonalny |
new name to be given to the environment Validations:
|
description opcjonalny |
description of the environment Validations:
|
Nazwa parametru | Opis |
---|---|
id wymagany |
ID of the environment Validations:
|
organization_id opcjonalny |
organization identifier Validations:
|
Nazwa parametru | Opis |
---|---|
organization_id opcjonalny |
organization identifier Validations:
|
permission_type opcjonalny |
The associated permission type. One of (readable | promotable) Default: readable Validations:
|