Clusters
Preview

Link an Argo CD destination to a Wardn cluster

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

PUT
/clusters/{clusterId}/import-links
cookiebetter-auth.session_token<token>

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

clusterId*string
Formatuuid
application/json
  1. body
destination*string

The Argo CD destination, a cluster name or a server URL.

Length1 <= length <= 512
spokeClusterId*string

The Wardn cluster the destination is.

Formatuuid

Response Body

The cluster's links after the change.

application/json
  1. response
items*array<>
Example Request
curl -X PUT 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/import-links' \  -H 'Content-Type: application/json' \  -d '{  "destination": "string",  "spokeClusterId": "7fc26c90-2900-4322-9f7c-d88ce84109c0"}'
Example Response
{  "items": [    {      "destination": "string",      "spokeClusterId": "string",      "spokeName": "string",      "setBy": "string",      "setAt": "2019-08-24T14:15:22Z"    }  ]}