Deployments
PreviewList a deployment's pull request previews
The previews that exist now, newest pull request first. There are at most as many as the deployment's cap, so the list is not paged.
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
deploymentId*stringFormat
uuidThe previews.
application/json- response
items*array<>curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/previews'Example Response
{ "items": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "appId": "28c365d5-df94-4a54-8217-3ce51d068868", "repo": "string", "prNumber": 0, "headSha": "string", "headRef": "string", "state": "active", "detailsUrl": "string", "url": "string", "fork": true, "labeledBy": "string", "expiresAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z" } ]}Import apps a cluster's Argo CD or Flux manages POST
"Import N apps": brings the named candidates of one tool into Wardn, each on its own, so one that cannot be imported does not stop the others. For each, Wardn reuses the organization's source of the same kind, URL and path (it carries the credentials) or makes one without credentials, makes an app (
Get a deployment's current state GET
What the deployment tracks, the snapshot it runs, the snapshot it wants when that is newer, and its sync, health and drift status.