environment_update
Change an Environment's settings: deletion protection, automatic deploys, access, Previews.
Change an Environment’s settings: deletion protection, automatic deploys, access, Previews.
| Access | Changes Blossom |
| Same as | blossom environment:update |
Arguments
| Argument | Type | Description |
|---|---|---|
id |
string | Environment id. Required. |
data |
object | Only the Environment fields to change. Required. |
data.name |
string | Environment name, such as production or staging. |
data.source_type |
string | git_repo or image. |
data.deletion_protection |
boolean | Refuse deletion until turned off. |
data.automatic_deploys |
boolean | Deploy on every push to the tracked branch. |
data.image_repo |
string | Where Blossom pushes built images. |
data.prebuilt_image |
string | Image to run instead of building, for source_type image. |
data.caddy_config |
string | Extra Caddy configuration. |
data.basic_auth_enabled |
boolean | Require basic auth; set its users in Blossom. |
data.access_mode |
string | Who can open the Environment, such as public. |
data.access_public_paths |
string list | Paths open without access checks. |
data.preview_access |
string | Who can open Previews. |
data.preview_expiry_days |
integer | Delete a Preview after this many days without a deploy. |
data.preview_limit |
integer | Most Previews at once. |
data.preview_setup_command |
string | Command run when a Preview is created. |
data.preview_pull_requests |
boolean | Open a Preview for each pull request. |
data.preview_branch_pattern |
string | Branches that get Previews. |
data.preview_resources |
object | Preview size. |
Example
{"id":"environment-100","data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}