---
title: Obtenir le nœud Kubernetes par ID
slug: obtenir-le-noeud-kubernetes-par-id
docTags: 
createdAt: 2026-06-04T15:50:56.155Z
---

{
  "id": "UReMTwaeEGdWj4sw4ax--",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}",
    "servers": [
      {
        "url": "https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}"
      }
    ],
    "name": "Get Kubernetes Node by ID",
    "description": "Retrieves the K8s node specified by its ID.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "k8sClusterId",
          "type": "string",
          "description": "The unique ID of the Kubernetes cluster."
        },
        {
          "kind": "required",
          "name": "nodepoolId",
          "type": "string",
          "description": "The unique ID of the Kubernetes node pool."
        },
        {
          "kind": "required",
          "name": "nodeId",
          "type": "string",
          "description": "The unique ID of the Kubernetes node."
        }
      ],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        },
        {
          "kind": "optional",
          "name": "X-Contract-Number",
          "type": "integer<int32>",
          "description": "<p>Users with multiple contracts must provide the contract number, for which all API requests are to be executed.</p>",
          "format": "int32"
        }
      ],
      "queryParameters": [
        {
          "kind": "optional",
          "name": "pretty",
          "type": "boolean",
          "description": "<p>Controls whether the response is pretty-printed (with indentations and new lines).</p>",
          "default": true
        },
        {
          "kind": "optional",
          "name": "depth",
          "type": "integer<int32>",
          "description": "<p>Controls the detail depth of the response objects.\nGET /datacenters/[ID]\n- depth=0: Only direct properties are included; children (servers and other elements) are not included.\n- depth=1: Direct properties and children references are included.\n- depth=2: Direct properties and children properties are included.\n- depth=3: Direct properties and children properties and children's children are included.\n- depth=... and so on</p>",
          "default": 0,
          "format": "int32",
          "minimum": 0,
          "maximum": 10
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "BasicAuthentication",
          "name": "BasicAuthentication",
          "kind": "optional",
          "type": "http",
          "description": "<p>You will need to base64 encode the string containing your credentials. \nNote:\n\n</p>",
          "scheme": "basic"
        },
        {
          "id": "TokenAuthentication",
          "name": "Authorization",
          "kind": "optional",
          "type": "apiKey",
          "description": "<p>Please provide header value as 'Bearer ' and don't forget to add 'Bearer' HTTP Authorization Scheme before the token.</p>",
          "in": "header"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful operation",
        "jsonExample": "",
        "isExpanded": true,
        "headers": [
          {
            "kind": "optional",
            "name": "X-RateLimit-Remaining",
            "type": "integer<int32>",
            "description": "The number of requests that can still be made without triggering a failure response.",
            "format": "int32"
          },
          {
            "kind": "optional",
            "name": "X-RateLimit-Limit",
            "type": "integer<int32>",
            "description": "The average number of requests per minute allowed.",
            "format": "int32"
          },
          {
            "kind": "optional",
            "name": "X-RateLimit-Burst",
            "type": "integer<int32>",
            "description": "The maximum number of concurrent API requests allowed.",
            "format": "int32"
          }
        ],
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "KubernetesNode",
            "schema": [
              {
                "name": "id",
                "kind": "optional",
                "type": "string",
                "readOnly": true,
                "description": "The resource's unique identifier.",
                "example": "1e072e52-2ed3-492f-b6b6-c6b116907527"
              },
              {
                "name": "type",
                "kind": "optional",
                "type": "string<node>",
                "readOnly": true,
                "description": "The object type.",
                "enum": [
                  "node"
                ]
              },
              {
                "name": "href",
                "kind": "optional",
                "type": "string<uri>",
                "readOnly": true,
                "description": "<p>The URL to the object representation (absolute path).</p>",
                "example": "https://api.ionos.com/cloudapi/v6/k8s/30f8a4f6-6515-4c34-b49d-dea807453b90/nodepools/bfdf67bd-5665-4245-8096-7c7991f02f3f/nodes/81892fdb-d97e-4919-baf9-2b3a923f5401",
                "format": "uri"
              },
              {
                "name": "metadata",
                "kind": "optional",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/KubernetesNodeMetadata",
                "customType": "KubernetesNodeMetadata",
                "schema": [
                  {
                    "name": "etag",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "<p>The resource entity tag as defined in <a href=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11\" target=\"_blank\">http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11</a>  Entity tags are also added as 'ETag' response headers to requests that do not use the 'depth' parameter.</p>",
                    "example": "45480eb3fbfc31f1d916c1eaa4abdcc3"
                  },
                  {
                    "name": "createdDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "readOnly": true,
                    "description": "The date the resource was created.",
                    "example": "2015-12-04T14:34:09.809Z",
                    "format": "date-time"
                  },
                  {
                    "name": "lastModifiedDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "readOnly": true,
                    "description": "The date the resource was last modified.",
                    "example": "2015-12-04T14:34:09.809Z",
                    "format": "date-time"
                  },
                  {
                    "name": "state",
                    "kind": "optional",
                    "type": "string<PROVISIONING | PROVISIONED | READY | TERMINATING | REBUILDING | BUSY>",
                    "readOnly": true,
                    "description": "The resource state.",
                    "example": "READY",
                    "enum": [
                      "PROVISIONING",
                      "PROVISIONED",
                      "READY",
                      "TERMINATING",
                      "REBUILDING",
                      "BUSY"
                    ]
                  },
                  {
                    "name": "lastSoftwareUpdatedDate",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "readOnly": true,
                    "description": "The date when the software on the node was last updated.",
                    "example": "2015-12-04T14:34:09.809Z",
                    "format": "date-time"
                  }
                ]
              },
              {
                "name": "properties",
                "kind": "required",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/KubernetesNodeProperties",
                "customType": "KubernetesNodeProperties",
                "schema": [
                  {
                    "name": "name",
                    "kind": "required",
                    "type": "string",
                    "description": "The Kubernetes node name.",
                    "example": "K8s-node"
                  },
                  {
                    "name": "publicIP",
                    "kind": "optional",
                    "type": "string",
                    "description": "The public IP associated with the node.",
                    "example": "192.168.23.2"
                  },
                  {
                    "name": "privateIP",
                    "kind": "optional",
                    "type": "string",
                    "description": "The private IP associated with the node.",
                    "example": "192.168.23.2"
                  },
                  {
                    "name": "k8sVersion",
                    "kind": "required",
                    "type": "string",
                    "description": "<p>The Kubernetes version running in the node pool. Note that this imposes restrictions on which Kubernetes versions can run in the node pools of a cluster. Also, not all Kubernetes versions are suitable upgrade targets for all earlier versions.</p>",
                    "example": "1.15.4"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/KubernetesNode",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "default",
        "description": "<p>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).</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Error",
            "schema": [
              {
                "name": "httpStatus",
                "kind": "optional",
                "type": "integer<int32>",
                "readOnly": true,
                "description": "HTTP status code of the operation.",
                "example": 400,
                "format": "int32"
              },
              {
                "name": "messages",
                "kind": "optional",
                "type": "array",
                "description": "",
                "modelRef": "#/components/schemas/ErrorMessage",
                "customType": "ErrorMessage[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "Application internal error code.",
                    "example": "123"
                  },
                  {
                    "name": "message",
                    "kind": "optional",
                    "type": "string",
                    "readOnly": true,
                    "description": "<p>A human-readable message.</p>",
                    "example": "Error message example."
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/Error",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "coV0G9komMzvCli5TugOd",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url 'https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}?pretty=true&depth=integer%3Cint32%3E' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "ajvDRfZAWZhW6ModSU3mq",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}?pretty=true&depth=integer<int32>\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "4-oNEVAOzTDo6HP-g-_sy",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}?pretty=true&depth=integer<int32>\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "qaOhZVKmPJcDo-tEZLyiQ",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.ionos.com/cloudapi/v6/k8s/{k8sClusterId}/nodepools/{nodepoolId}/nodes/{nodeId}?pretty=true&depth=integer<int32>\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "coV0G9komMzvCli5TugOd"
    },
    "results": {
      "languages": [
        {
          "id": "h5CPkQ_dmTWOKzwJ2zk2p",
          "language": "200",
          "code": "// Successful operation\n{\n  \"id\": \"1e072e52-2ed3-492f-b6b6-c6b116907527\",\n  \"type\": \"\",\n  \"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\",\n  \"metadata\": {\n    \"etag\": \"45480eb3fbfc31f1d916c1eaa4abdcc3\",\n    \"createdDate\": \"2015-12-04T14:34:09.809Z\",\n    \"lastModifiedDate\": \"2015-12-04T14:34:09.809Z\",\n    \"state\": \"READY\",\n    \"lastSoftwareUpdatedDate\": \"2015-12-04T14:34:09.809Z\"\n  },\n  \"properties\": {\n    \"name\": \"K8s-node\",\n    \"publicIP\": \"192.168.23.2\",\n    \"privateIP\": \"192.168.23.2\",\n    \"k8sVersion\": \"1.15.4\"\n  }\n}"
        },
        {
          "id": "eO58uH-AWQ8tPHkCdJn0F",
          "language": "default",
          "code": "// 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).\n{\n  \"httpStatus\": 400,\n  \"messages\": [\n    {\n      \"errorCode\": \"123\",\n      \"message\": \"Error message example.\"\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "h5CPkQ_dmTWOKzwJ2zk2p"
    }
  },
  "children": [
    {
      "text": "",
      "id": "FRAWzPQvAFcVFV0XM26zD"
    }
  ]
}