Guardrails
Preview

List freezes

Active first, then planned and recurring by their next start, then ended. `counts` are the tiles and ignore the filters; `cover` is what each reaches.

GET
/freezes
cookiebetter-auth.session_token<token>

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

status?string

Only freezes in this state.

Value in"active""planned""recurring""ended"
q?string

Only freezes whose name or reason contains this text.

Lengthlength <= 100

Response Body

The freezes.

application/json
  1. response
items*array<>
counts*
tabs*

The counts on the Rules, Freezes and Exceptions tabs.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/freezes'
Example Response
{  "items": [    {      "appliesToRestores": true,      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "reason": "string",      "scope": [        {          "field": "class",          "op": "is",          "value": "string",          "label": "string"        }      ],      "kind": "one_time",      "startsAt": "2019-08-24T14:15:22Z",      "endsAt": "2019-08-24T14:15:22Z",      "schedule": {        "days": [          "mon"        ],        "start": "string",        "end": "string"      },      "timeZone": "string",      "runningReleases": "pause",      "bypass": [        {          "who": "string",          "can": "bypass",          "needs": "string"        }      ],      "notify": [        {          "who": "string",          "when": "string"        }      ],      "status": "active",      "until": "2019-08-24T14:15:22Z",      "next": "2019-08-24T14:15:22Z",      "cover": {        "deployments": 0,        "apps": 0,        "clusters": 0,        "leftOut": 0,        "summary": "string",        "lowered": [          "string"        ]      },      "canceledAt": "2019-08-24T14:15:22Z",      "createdBy": {        "id": "string",        "name": "string"      },      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "counts": {    "active": 0,    "planned": 0,    "recurring": 0,    "ended": 0  },  "tabs": {    "rules": 0,    "activeFreezes": 0,    "exceptions": 0  }}