POST /katello/api/organizations/114267492/environments
{
"environment": {
"name": "",
"prior": 562075838
}
}
422
{
"displayMessage": "Validation failed: Name can't be blank, Label can't be blank, Name must contain at least 1 character, Label cannot contain characters other than ascii alpha numerals, '_', '-'. , Label must contain at least 1 character",
"errors": {
"name": [
"can't be blank",
"must contain at least 1 character"
],
"label": [
"can't be blank",
"cannot contain characters other than ascii alpha numerals, '_', '-'. ",
"must contain at least 1 character"
]
}
}
| Param name | Description |
|---|---|
|
organization_id
required |
name of organization Validations:
|
|
name
required |
name of the environment Validations:
|
|
label
optional |
label of the environment Validations:
|
|
description
optional |
description of the environment Validations:
|
|
registry_name_pattern
optional |
pattern for container image names Validations:
|
|
registry_unauthenticated_pull
optional |
allow unauthenticed pull of container images Validations:
|
|
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:
|