List of clusters
GET/clusters
The operation allows you to retrieve a collection of all available clusters. A cluster constitutes a managed group of interconnected worker nodes that run containerized applications.
Request
Query Parameters
Header Parameters
CodeNOW API Key
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
List of clusters
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
The unique identifier of the cluster.
The user-friendly name or label for the cluster. It allows users to provide a clear
and descriptive name that helps in identifying and distinguishing different clusters easily.
The field accepts free text with alphanumeric and special characters.
If the displayName
is not explicitly set during creation, the cluster name will
be used as the default displayName, ensuring the cluster has a recognizable and unique label.
The detailed textual description of the cluster. Allows users to add additional context, notes, or any relevant information about the purpose, usage, or characteristics of the cluster.
The fully qualified domain name used to access the services running in the cluster.
A boolean flag indicating whether the cluster is the primary (or default) cluster for the associated account.
A boolean flag indicating whether the cluster is enabled for use. If set to false, the cluster is suspended and unavailable.
The timestamp denoting when the cluster was created. It is an automatically generated value that records the exact date and time when the cluster was added to the system.
The timestamp denoting when the cluster was last updated. It is an automatically generated value that records the exact date and time when the cluster configuration was changed.
The current version of the cluster. Version can change when the cluster configuration is updated.
The current life-cycle status of the cluster.
The username of the user who requested the creation of the cluster.
workerNodes
object[]
A list of objects representing the configuration of worker nodes in the cluster. Each object contains details about a specific type of worker node, including the common cloud provider and the count of nodes of that type.
Name of the cloud provider used to provision the worker nodes in the cluster. This value remains the same across all worker nodes in the cluster.
Type or instance size of the worker nodes.
Number of worker nodes of given type in the cluster.
A boolean flag indicating whether the cluster is managed by the customer. If set to false, the cluster is registered under, and managed by, CodeNOW.
A boolean flag indicating whether the cluster is ready for reconfiguration.
[
{
"id": "string",
"name": "string",
"description": "string",
"domain": "string",
"primary": true,
"enabled": true,
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"version": "string",
"creationStatus": "string",
"requestedBy": "string",
"workerNodes": [
{
"cloudProvider": "string",
"workerNodeType": "string",
"workerNodeCount": 0
}
],
"selfHosted": true,
"readyForChanges": true
}
]
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.