---
title: Get Instance for the Node
slug: single-connect-api-3-2-0/get-instance-for-the-node
description: Learn how to use cURL to make a GET request and retrieve node instances from a REST API using this helpful code example. The request includes essential headers for accepting JSON and specifying the content type. Boost your programming skills and master RE
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "991tw_x7xt4VZXBSN968k",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getInstancesForTheNode/{{id}}",
    "method": "GET",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "",
    "examples": {
      "languages": [
        {
          "id": "Vs6XLHMdnq3wd1nmehI4c",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getInstancesForTheNode/{{id}} \\\n     --header 'accept: application/json'"
        },
        {
          "id": "GtUkN6csxotu-jDyKndJ3",
          "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(\"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getInstancesForTheNode/{{id}}\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "ouBw26zh_gUZaVQR-uosr",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getInstancesForTheNode/{{id}}\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "CVUSHvcdXYyRc3LHVYk9e",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getInstancesForTheNode/{{id}}\"\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": "Vs6XLHMdnq3wd1nmehI4c"
    },
    "results": {
      "languages": [
        {
          "id": "Nr85dkbtV67TCnEt--eMC",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "Nr85dkbtV67TCnEt--eMC"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}