Cluster [v1]
/auth/v1/clusters
get list clusters by rbac
Parameters
Authorization(in header):stringGiven Bearer token will use this as authorization for the API
labelSelector(in query):stringA selector to restrict the list of returned objects by their labels.
fieldSelector(in query):stringA selector to restrict the list of returned objects by their fields.
limit(in query):integerlimit the number of returned records.
continue(in query):stringcontinue token for paginated queries.
resourceVersion(in query):stringresourceVersion sets a constraint on what resource versions a request may be served from.
watch(in query):booleanwatch for changes to the described resources.
timeoutSeconds(in query):integertimeoutSeconds for the list/watch call.
Response
200ClusterList: OK401: Unauthorized - Invalid or missing authentication credentials
ClusterList
ClusterList is a list of Cluster resources.
ListMeta
continue:stringremainingItemCount:integerresourceVersion:stringselfLink:string
Cluster
Cluster contains information about a cluster in a cluster registry.
apiVersion:stringAPIVersion defines the versioned schema of this representation of an object.
kind:stringKind is a string value representing the REST resource this object represents.
metadata: ObjectMetaObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
spec: ClusterSpecSpec is the specification of the cluster.
status: ClusterStatusStatus is the status of the cluster.
ClusterSpec
Spec is the specification of the cluster.
authInfo: ClusterAuthInfokubernetesApiEndpoints: KubernetesAPIEndpoints
ClusterAuthInfo
controller: ClusterAuthReferenceuser: ClusterAuthReference
ClusterAuthReference
kind:stringname:stringnamespace:string
KubernetesAPIEndpoints
caBundle:stringCABundle contains the certificate authority information.
serverEndpoints:[]ServerAddressByClientCIDRServerEndpoints specifies API server addresses for clients.
ServerAddressByClientCIDR
clientCIDR:stringCIDR used by clients to match the corresponding server address.
serverAddress:stringServer address suitable for a client in the matching CIDR.
ClusterStatus
Status is the status of the cluster.
conditions:[]ClusterConditionConditions contains the different condition statuses for this cluster.
type:stringType contains the type of this cluster.
version:stringVersion contains the kubernetes version for this cluster.
ClusterCondition
ClusterCondition contains condition information for a cluster.
lastHeartbeatTime:stringLastHeartbeatTime is the last time this condition was updated.
lastTransitionTime:stringLastTransitionTime is the last time the condition changed from one status to another.
message:stringMessage is a human-readable message indicating details about the last status change.
reason:stringReason is a brief reason for the condition's last status change.
status:stringStatus is one of True, False, Unknown.
type:stringType is the type of the cluster condition.
Related APIs
API usage
This API does not use /kubernetes/{cluster} as a path prefix.
Common query parameters:
Request example
Response example
Notes
- This API returns clusters filtered by RBAC.
- Some sensitive fields are filtered from the response by the backend.