---
title: Search Connector Node
slug: single-connect-api-3-2-0/search-connector-node
description: Learn how to make a POST request to a specific URL using the curl command with this informative document. Discover how to include headers for accepting and sending JSON data, along with an example request body in JSON format. Improve your coding skills ef
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "veatnfRt3xkh1wz8pGIyx",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/searchNode",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\r\n    \"nodeName\": \"{{name}}\",\r\n    \"tunnelPort\": \"{{port}}\",\r\n    \"connectionPort\": \"{{connectionPort}}\",   \r\n    \"externalIp\": \"{{externalIP}}\",\r\n    \"internalIp\": \"{{externalIP}}\",\r\n    \"sshKey\": \"{{sshkey}}\"\r\n}\r\n",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "",
    "examples": {
      "languages": [
        {
          "id": "AFhQu6S-6Gw_u3D6sF5j1",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/searchNode \\\n     --header 'accept: application/json'"
        },
        {
          "id": "YDt02-jozgIsG2lSND9yz",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/searchNode\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "FUk3IkOwBAj8OtV4ZIVOw",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/searchNode\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "EJK_p-JN3iJ1xiGRUUXEf",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/searchNode\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "AFhQu6S-6Gw_u3D6sF5j1"
    },
    "results": {
      "languages": [
        {
          "id": "SxQ6MrjIm7IEjwb-Jj2Ft",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "SxQ6MrjIm7IEjwb-Jj2Ft"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}