Apps and sources
Preview

Try a draft health check of the app against one of its deployments

Reads the draft against what the deployment runs now and says what it found for each object (or each pod behind a service, for an HTTP check). Nothing is saved and nothing in the cluster changes.

POST
/apps/{appId}/health/try
cookiebetter-auth.session_token<token>

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

appId*string
Formatuuid
application/json
  1. body
deploymentId*string
Formatuuid
clusterId?string

For a deployment on an environment, the cluster to read on; the first by default.

Formatuuid
check*

Response Body

What the draft read.

application/json
  1. response
rows*array<>
error?string

Set when the draft could not be read at all, as when it does not compile.

Example Request
curl -X POST 'https://wardn.example.com/api/v1/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/health/try' \  -H 'Content-Type: application/json' \  -d '{  "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",  "check": {    "name": "string",    "kind": "http"  }}'
Example Response
{  "rows": [    {      "object": "string",      "outcome": "healthy",      "message": "string"    }  ],  "error": "string"}