Get an environment's settings
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
environmentId*stringuuidThe settings. An environment nobody has configured has no deploy window, no notification targets, terminals for everyone who deploys there, and its owner teams told when one opens.
application/json- response
deployWindow*|Null while deployments may start at any time.
notificationTargets*array<>terminalAccess*TerminalAccessWho may open a terminal in the pods of the environment's deployments. deployers is everyone who may manage the deployment; named is only people who were given the pod:exec duty by name. Leaving it out of a change keeps the current choice.
"deployers""named"terminalNotifyOwner*booleanWhether the team that owns a deployment is told when someone opens a terminal in its pods. On until turned off.
updatedAt*|Null while the environment has the defaults.
date-timecurl -X GET 'https://wardn.example.com/api/v1/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/settings'{ "deployWindow": { "days": [ "mon" ], "start": "09:00", "end": "17:00", "timeZone": "Europe/Berlin" }, "notificationTargets": [ { "kind": "slack", "target": "string", "what": "changes", "enabled": true } ], "terminalAccess": "deployers", "terminalNotifyOwner": true, "updatedAt": "2019-08-24T14:15:22Z"}Set the team that owns an environment PUT
People own an environment through the owner role (see the owners operations); a team is kept on the environment itself, since a team cannot hold a role. Send a null team to remove it. Setting the team it already has changes nothing.
Replace an environment's settings PUT
The deploy window is the default for the environment's pipeline stages; a stage may narrow it, never widen it. Notification targets are stored as configuration and nothing is delivered to them yet. The settings of an archived environment cannot be changed.