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 (
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
clusterId*stringuuidIdempotency-Key?stringMakes 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.
^[A-Za-z0-9_.:-]+$1 <= length <= 255application/json- body
The candidates of one tool to import, by their keys from the import list.
tool*ImportToolKind"argocd""flux"keys*array<>1 <= items <= 50What became of each candidate.
application/json- response
results*array<>One per key asked for, in the same order.
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" ]}'{ "results": [ { "key": "string", "deploymentId": "a73c85a1-d857-491e-a6b2-51dce05de7a2", "error": { "code": "string", "message": "string" } } ]}List the apps a cluster's Argo CD or Flux manages that can be imported GET
One item per Argo CD Application (an ApplicationSet's generated ones included) or Flux Kustomization or HelmRelease the latest scan found, by name: where it comes from, where it deploys, whether it can be imported, the one-sentence note the import list shows and every finding behind it. Items that a
List a deployment's pull request previews GET
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.