Clusters
Preview

Import apps a cluster's Argo CD or Flux manages

"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 (

POST
/clusters/{clusterId}/imports
cookiebetter-auth.session_token<token>

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

clusterId*string
Formatuuid
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body

The candidates of one tool to import, by their keys from the import list.

tool*ImportToolKind
Value in"argocd""flux"
keys*array<>
Items1 <= items <= 50

Response Body

What became of each candidate.

application/json
  1. response
results*array<>

One per key asked for, in the same order.

Example Request
curl -X POST 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/imports' \  -H 'Content-Type: application/json' \  -d '{  "tool": "argocd",  "keys": [    "string"  ]}'
Example Response
{  "results": [    {      "key": "string",      "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2",      "error": {        "code": "string",        "message": "string"      }    }  ]}