Environments
Preview

Get an environment's settings

GET
/environments/{environmentId}/settings
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

environmentId*string
Formatuuid

Response Body

The 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
  1. response
deployWindow*|

Null while deployments may start at any time.

notificationTargets*array<>
terminalAccess*TerminalAccess

Who 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.

Value in"deployers""named"
terminalNotifyOwner*boolean

Whether 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.

Formatdate-time
Example Request
curl -X GET 'https://wardn.example.com/api/v1/environments/497f6eca-6276-4993-bfeb-53cbbbba6f08/settings'
Example Response
{  "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"}