Cloud Providers /
List cluster nodes
Get a list of nodes for the given cluster
Required permission
Account > Cloud > Clusters > Read
Path parameters
clusterId
string requiredID of the cluster
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.status
stringFilter the node list by state of the nodes.one ofRUNNING, DELETED
Response body
- {object}Response object.
data
{object} requiredResult data.nodes
[array] requiredAn array of nodes.- {object}A node object.
nodeId
stringThe id of the node.nodeName
stringThe name of the node.nodePool
stringThe node pool the node is a part of.status
stringThe status of the node.zone
stringThe zone the node is running in.region
stringThe region the node is running in.instanceType
stringThe type of the node.createdAt
stringpagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/cloud-providers/clusters/{clusterId}/nodes
Example response
200 OK
List of nodes for the given cluster.
JSON
{
"data": {
"nodes": [
{
"nodeId": "87a11ea9-3493-40d3-9f50-280c1d7c77a3",
"nodeName": "gke-nf-example-cluster-nf-951dfaf6-a70a-7697bc0d-n771",
"nodePool": "nf-951dfaf6-a70a-4550-bab6-b5364d5da20c",
"status": "RUNNING",
"zone": "us-central1-c",
"region": "us-central1",
"instanceType": "n2-standard-4",
"createdAt": "2000-01-01T12:00:00.000Z"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}