List the apps a cluster's Argo CD or Flux manages that can be imported
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
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
clusterId*stringuuidlimit?integerPage size. Defaults to 50, at most 200.
1 <= value <= 20050cursor?stringOpaque cursor from a previous page's nextCursor.
tool?stringOnly the candidates of this tool.
"argocd""flux"q?stringOnly the candidates whose name, namespace or target cluster contain this, in any case.
1 <= length <= 200A page of candidates, by name.
application/json- response
items*array<>nextCursor?stringcounts*A tool's import candidates by where they stand.
curl -X GET 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/import-candidates'{ "items": [ { "key": "string", "tool": "argocd", "name": "string", "source": { "kind": "string", "namespace": "string", "name": "string" }, "sourceLine": "string", "generator": { "kind": "string", "namespace": "string", "name": "string" }, "target": { "clusterId": "string", "clusterName": "string", "display": "string", "namespace": "string" }, "status": "ready", "note": "string", "findings": [ { "code": "string", "severity": "info", "message": "string", "path": "string", "line": 0 } ], "selectedByDefault": true, "deploymentId": "string", "gone": true } ], "nextCursor": "string", "counts": { "total": 0, "importable": 0, "imported": 0, "remaining": 0 }}Link an Argo CD destination to a Wardn cluster PUT
Says that a destination of this cluster's Argo CD (a cluster name or a server URL, as `spec.destination` has it) is the Wardn cluster `spokeClusterId`. Needs `import:manage` on this cluster and on the spoke, and only a person may, never an agent. Setting a link again replaces it. The cluster is scan
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 (