Get Node Pool
API to get Node Pool of a Kubernetes Cluster
Request
URI
GET
https://{api_host}/telco/api/caas/v2/clusters/{clusterName}/nodepools/{nodepoolName}
COPY
Path Parameters
string
clusterName
Required
Name of cluster where node pool is created
string
nodepoolName
Required
Name of node pool
Query Parameters
string
mgmtClusterName
Optional
Name of management cluster of the given cluster. If given cluster is management cluster, this is not required
string
tcaCpId
Required
TCA-CP id of management cluster managing given cluster
Responses
200
Successfully returned node pool
Returns nodepool of type(s) application/json
{
"lastUpdated": "lastUpdated",
"metadata": {
"createdByIntent": "createdByIntent",
"modifiedByIntent": "modifiedByIntent",
"tcaCpId": "tcaCpId",
"resourceVersion": 0.8008281904610115,
"clusterName": "clusterName",
"name": "name",
"mgmtClusterName": "mgmtClusterName"
},
"creationUser": "creationUser",
"creationDate": "creationDate",
"spec": {
"template": "template",
"diskGiB": 1,
"numCPUs": 2,
"datastore": "datastore",
"replicas": 9,
"kubeadmConfigTemplate": {
"joinConfiguration": {
"nodeRegistration": {
"kubeletExtraArgs": {
"key": "kubeletExtraArgs"
}
}
}
},
"cloudMachineTemplate": {
"type": "type",
"vSphereMachine": {
"template": "template",
"cloneMode": "fullClone",
"numCoresPerSocket": 6,
"folder": "folder",
"datastore": "datastore",
"datacenter": "datacenter",
"storagePolicyName": "storagePolicyName",
"resourcePool": "resourcePool"
}
},
"datacenter": "datacenter",
"storagePolicyName": "storagePolicyName",
"customisations": {
"networkAdapters": [
{
"networkName": "networkName",
"interfaceName": "interfaceName",
"mtu": 3.616076749251911
},
{
"networkName": "networkName",
"interfaceName": "interfaceName",
"mtu": 3.616076749251911
}
]
},
"memoryMiB": 5,
"pause": true,
"labels": {
"key": "labels"
},
"network": {
"devices": [
{
"dhcp4": true,
"nameservers": [
"nameservers",
"nameservers"
],
"dhcp6": true,
"networkName": "networkName",
"gateway6": "gateway6",
"gateway4": "gateway4",
"mtu": 5
},
{
"dhcp4": true,
"nameservers": [
"nameservers",
"nameservers"
],
"dhcp6": true,
"networkName": "networkName",
"gateway6": "gateway6",
"gateway4": "gateway4",
"mtu": 5
}
]
},
"cloneMode": "fullClone",
"numCoresPerSocket": 7,
"folder": "folder",
"tcaBomReleaseRef": {
"name": "name"
},
"clusterName": "clusterName",
"healthCheck": {
"unhealthyConditions": [
{
"type": "type",
"timeout": "timeout",
"status": "status"
},
{
"type": "type",
"timeout": "timeout",
"status": "status"
}
],
"nodeStartupTimeout": "nodeStartupTimeout",
"maxUnhealthy": "maxUnhealthy"
},
"cloudProvider": {
"vimId": "vimId"
},
"strategy": {
"type": "type",
"rollingUpdate": {
"maxSurge": "",
"maxUnavailable": ""
}
},
"resourcePool": "resourcePool"
},
"status": {
"needUpgrade": false,
"deleteAccepted": true,
"resourceVersion": 2.027123023002322,
"opstatus": "processing",
"hostProfile": "hostProfile",
"computeResource": {
"name": "name",
"type": "type"
},
"conditions": [
{
"severity": "Warning",
"reason": "reason",
"lastTransitionTime": "lastTransitionTime",
"type": "Ready",
"message": "message",
"status": true
},
{
"severity": "Warning",
"reason": "reason",
"lastTransitionTime": "lastTransitionTime",
"type": "Ready",
"message": "message",
"status": true
}
]
}
}
string
lastUpdated
Optional
lastUpdated
string
creationDate
Optional
creationDate
string
creationUser
Optional
creationUser
400
Bad Request
Returns errorResponse of type(s) application/json
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
500
Internal Server Error
Returns errorResponse of type(s) application/json
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}