Clusters
Preview

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

GET
/clusters/{clusterId}/import-candidates
cookiebetter-auth.session_token<token>

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

clusterId*string
Formatuuid
limit?integer

Page size. Defaults to 50, at most 200.

Range1 <= value <= 200
Default50
cursor?string

Opaque cursor from a previous page's nextCursor.

tool?string

Only the candidates of this tool.

Value in"argocd""flux"
q?string

Only the candidates whose name, namespace or target cluster contain this, in any case.

Length1 <= length <= 200

Response Body

A page of candidates, by name.

application/json
  1. response
items*array<>
nextCursor?string
counts*

A tool's import candidates by where they stand.

Example Request
curl -X GET 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/import-candidates'
Example Response
{  "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  }}