List node pools
const options = {method: 'GET'};
fetch('https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/nodepools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/nodepools"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/nodepoolsimport requests
url = "https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/nodepools"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"name": "<string>",
"clusterId": "<string>",
"machineType": "<string>",
"replicas": 123,
"status": "provisioning",
"currentReplicas": 123,
"labels": {},
"taints": [
{
"key": "<string>",
"value": "<string>",
"effect": "NoSchedule"
}
],
"createdAt": "2023-11-07T05:31:56Z"
}
]
}Node Pools
List node pools
List node pools for a cluster
GET
/
v1
/
regions
/
{region}
/
compute
/
clusters
/
{clusterId}
/
nodepools
List node pools
const options = {method: 'GET'};
fetch('https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/nodepools', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/nodepools"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}curl --request GET \
--url https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/nodepoolsimport requests
url = "https://api.example.com/v1/regions/{region}/compute/clusters/{clusterId}/nodepools"
response = requests.get(url)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"name": "<string>",
"clusterId": "<string>",
"machineType": "<string>",
"replicas": 123,
"status": "provisioning",
"currentReplicas": 123,
"labels": {},
"taints": [
{
"key": "<string>",
"value": "<string>",
"effect": "NoSchedule"
}
],
"createdAt": "2023-11-07T05:31:56Z"
}
]
}Was this page helpful?