Get Kubernetes Node by ID
1 min
GET
https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}
Path Parameters
- k8sClusterIdstringrequiredDescription
- nodepoolIdstringrequiredDescription
- nodeIdstringrequiredDescription
Query Parameters
- prettybooleanDescriptionDefaulttrue
- depthinteger<int32>DescriptionDefault0Formatint32Minimum0Maximum10
Header Parameters
- X-Contract-Numberinteger<int32>DescriptionFormatint32
Responses
200
- KubernetesNode
- idstringExampleDescription
- typestring<node>DescriptionAllowednode
- hrefstring<uri>ExampleDescriptionFormaturi
- metadataKubernetesNodeMetadata
- etagstringExampleDescription
- createdDatestring<date-time>ExampleDescriptionFormatdate-time
- lastModifiedDatestring<date-time>ExampleDescriptionFormatdate-time
- statestring<PROVISIONING | PROVISIONED | READY | TERMINATING | REBUILDING | BUSY>ExampleDescriptionAllowedPROVISIONINGPROVISIONEDREADYTERMINATINGREBUILDINGBUSY
- lastSoftwareUpdatedDatestring<date-time>ExampleDescriptionFormatdate-time
- propertiesKubernetesNodePropertiesrequired
- namestringrequiredExampleDescription
- publicIPstringExampleDescription
- privateIPstringExampleDescription
- k8sVersionstringrequiredExampleDescription
Response Headers
- X-RateLimit-Remaininginteger<int32>DescriptionFormatint32
- X-RateLimit-Limitinteger<int32>DescriptionFormatint32
- X-RateLimit-Burstinteger<int32>DescriptionFormatint32
default
- Error
- httpStatusinteger<int32>ExampleDescriptionFormatint32
- messagesErrorMessage[]
- errorCodestringExampleDescription
- messagestringExampleDescription
curl
curl --request GET \
--url 'https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}?pretty=true&depth=integer%3Cint32%3E' \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}?pretty=true&depth=integer<int32>", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}?pretty=true&depth=integer<int32>")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}?pretty=true&depth=integer<int32>"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful operation
{
"id": "1e072e52-2ed3-492f-b6b6-c6b116907527",
"type": "",
"href": "https://api.ionos.com/cloudapi/v6/k8s/30f8a4f6-6515-4c34-b49d-dea807453b90/nodepools/bfdf67bd-5665-4245-8096-7c7991f02f3f/nodes/81892fdb-d97e-4919-baf9-2b3a923f5401",
"metadata": {
"etag": "45480eb3fbfc31f1d916c1eaa4abdcc3",
"createdDate": "2015-12-04T14:34:09.809Z",
"lastModifiedDate": "2015-12-04T14:34:09.809Z",
"state": "READY",
"lastSoftwareUpdatedDate": "2015-12-04T14:34:09.809Z"
},
"properties": {
"name": "K8s-node",
"publicIP": "192.168.23.2",
"privateIP": "192.168.23.2",
"k8sVersion": "1.15.4"
}
}default
// Any erroneous status code: 400 (parse error), 401 (auth error), 402 (trial access), 403 (insufficient privileges), 404 (not found), 405 (unsupported HTTP method), 415 (unsupported content type, 422 (validation error), 429 (request rate limit exceeded), 500 (server error), or 503 (maintenance).
{
"httpStatus": 400,
"messages": [
{
"errorCode": "123",
"message": "Error message example."
}
]
}Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.