Clusters
Preview

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

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

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

clusterId*string
Formatuuid

Response Body

The cluster's import section.

application/json
  1. response

What a cluster's scan for Argo CD and Flux found.

clusterId*string
state*string

scanning while a scan is under way; done once the cluster reported one; none when it never has and none is under way.

Value in"scanning""done""none"
enabled*boolean

Whether 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*|
Formatdate-time
scannedAt*|

When the latest complete scan ran, or null when the cluster has reported none.

Formatdate-time
tools*array<>

The tools the latest scan found, Argo CD first. Empty when it found neither.

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