Get what a cluster's scan found of Argo CD and Flux
The import section of a cluster: whether a scan is under way, and each tool the latest complete scan found (Argo CD or Flux) with its version, namespace, what it manages, the clusters it deploys to, why it could not be read in full, and how many of its apps can be imported. A cluster's operator scan
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
clusterId*stringuuidThe cluster's import section.
application/json- response
What a cluster's scan for Argo CD and Flux found.
clusterId*stringstate*stringscanning while a scan is under way; done once the cluster reported one; none when it never has and none is under way.
"scanning""done""none"enabled*booleanWhether the cluster's operator scans, which needs an operator that can and the import capability on.
requestedScanId*|The scan last asked for, or null when nobody has asked.
requestedAt*|date-timescannedAt*|When the latest complete scan ran, or null when the cluster has reported none.
date-timetools*array<>The tools the latest scan found, Argo CD first. Empty when it found neither.
curl -X GET 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/import-scan'{ "clusterId": "string", "state": "scanning", "enabled": true, "requestedScanId": "string", "requestedAt": "2019-08-24T14:15:22Z", "scannedAt": "2019-08-24T14:15:22Z", "tools": [ { "tool": "argocd", "namespace": "string", "version": "string", "objects": [ { "kind": "string", "count": 0 } ], "clusters": [ "string" ], "error": { "message": "string", "reason": "forbidden", "namespace": "string" }, "truncated": true, "scannedAt": "2019-08-24T14:15:22Z", "counts": { "total": 0, "importable": 0, "imported": 0, "remaining": 0 } } ]}List a cluster's timeline GET
What the cluster's operator reported as day-to-day churn: containers restarting, crash looping and being killed, pods starting and stopping, and nodes coming and going. Newest first. Repeated events of one kind on one object are one entry with a count and the times of the first and the last. Entries
Ask a cluster's operator to scan for Argo CD and Flux again POST
"Check again": the cluster's operator looks for Argo CD and Flux, reading only, and reports what they manage; the result replaces what earlier scans found. Answers at once with the scan under way; the result arrives as a live update and in `getClusterImportScan`. A scan already under way answers the