Cluster Service
Cluster Service API performs CRUD actions against cluster resources.Service Definition
Package:cluster
Service: ClusterService
The ClusterService manages Kubernetes cluster configurations that Argo CD uses to deploy applications.
RPC Methods
List
Returns list of clusters. Request:ClusterQuery
The cluster server URL
The cluster name
The cluster identifier (type and value)
ClusterList
REST Endpoint: GET /api/v1/clusters
Get
Returns a cluster by server address or name. Request:ClusterQuery
The cluster server URL
The cluster name
The cluster identifier
The type of the specified cluster identifier (“server” - default, “name”)
The cluster server URL or cluster name
Cluster
REST Endpoint: GET /api/v1/clusters/{id.value}
Create
Creates a cluster. Request:ClusterCreateRequest
The cluster configuration to create
Whether to create or update the cluster if it already exists
Cluster
REST Endpoint: POST /api/v1/clusters
Update
Updates a cluster. Request:ClusterUpdateRequest
The cluster configuration to update
List of fields to update (allows partial updates)
The cluster identifier
Cluster
REST Endpoint: PUT /api/v1/clusters/{id.value}
Delete
Deletes a cluster. Request:ClusterQuery
The cluster server URL
The cluster name
The cluster identifier
ClusterResponse
REST Endpoint: DELETE /api/v1/clusters/{id.value}
RotateAuth
Rotates the bearer token used for a cluster. Request:ClusterQuery
The cluster identifier
ClusterResponse
REST Endpoint: POST /api/v1/clusters/{id.value}/rotate-auth
InvalidateCache
Invalidates cluster cache. Request:ClusterQuery
The cluster identifier
Cluster
REST Endpoint: POST /api/v1/clusters/{id.value}/invalidate-cache