---
title: Get Connector Nodes
slug: single-connect-api-3-2-0/get-connector-nodes
description: Learn how to use the curl command to effortlessly perform GET requests to the specified URL and retrieve all connector nodes from the tenant connector API. Master the art of including the necessary headers to effortlessly accept and send JSON data. Enhanc
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "x8ME6lOzJi6tf1YK3Vuf2",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getAllNodes",
    "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": "RYb1PE4q4hzZyv01OY4uy",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url {{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getAllNodes \\\n     --header 'accept: application/json'"
        },
        {
          "id": "PDfRLe6S3Qd_192Lqqhnc",
          "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/getAllNodes\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "W__iO1s_W3EnF7gaTe_PK",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getAllNodes\")\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": "m0R6EoIhCuUlkevcc5eyh",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/getAllNodes\"\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": "RYb1PE4q4hzZyv01OY4uy"
    },
    "results": {
      "languages": [
        {
          "id": "xVnpm2fdzFr5Zx0uE0mq5",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "xVnpm2fdzFr5Zx0uE0mq5"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}