---
title: Search Connector Node
slug: kronpam-api-collection-3-6-0/search-connector-node
docTags: 
createdAt: 2025-01-20T13:35:40.977Z
---

{
  "id": "YKXEeC_xXB3Jf5MEgdaqq",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/searchNode",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This request searches for an existing connector node by its name within the Kron PAM system. It returns basic information about the node, including its status and associated site.</p>",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "description": "",
          "default": "{{csrftoken}}",
          "value": "{{csrftoken}}",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "{\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",
          "value": "{\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",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Search Connector Node",
        "jsonExample": "[\n    {\n        \"dbId\": 2216211,\n        \"nodeName\": \"test_arift_openvpn\",\n        \"subnet\": \"192.168.0.0/28\",\n        \"tunnelPort\": null,\n        \"connectionPort\": null,\n        \"externalIp\": null,\n        \"internalIp\": \"192.168.0.3\",\n        \"sshKey\": null,\n        \"connectorSite\": {\n            \"dbId\": 2215976,\n            \"siteName\": \"test\",\n            \"siteDescription\": \"change_test\",\n            \"isAnyNodeActive\": false,\n            \"connectorNodeList\": null,\n            \"pageForSearch\": 0\n        },\n        \"instanceName\": null,\n        \"tunnelStatus\": \"other\",\n        \"heartbeat\": null,\n        \"clientId\": \"e609864c-bb9f-4d90-966c-5ed4cac32a77\",\n        \"vpnUsername\": \"efe.basol@krontech.com\",\n        \"vpnPassword\": null,\n        \"vpnConfig\": \"efe.basol@krontech.com\",\n        \"connectorType\": \"openvpn\",\n        \"pageForSearch\": 0,\n        \"instanceNameTunnelStatusPair\": [\n            {\n                \"instanceName\": \"arift\",\n                \"tunnelStatus\": \"waiting_client_setup\"\n            }\n        ]\n    }\n]"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "dakxyitQdyZLBJLSlL_m6",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/searchNode \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\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\"'"
        },
        {
          "id": "J6YUNVcQ0WlOoKklhatZC",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-xsrf-token\", \"{{csrftoken}}\");\n\nvar raw = JSON.stringify(\"{\\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\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\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": "OGJgFmpofcCdtjmjES6G-",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\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\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-xsrf-token\"] = \"{{csrftoken}}\"\nrequest.body = JSON.dump(\"{\\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\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "tZgs9nN6ySPxcKBVa9CMA",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/tenantConnector/connectorNode/searchNode\"\n\npayload = json.dumps(\"{\\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\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-xsrf-token': '{{csrftoken}}'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "dakxyitQdyZLBJLSlL_m6"
    },
    "results": {
      "languages": [
        {
          "id": "r68AbfpfP2iK8DOFVDnAx",
          "language": "200",
          "code": "[\n    {\n        \"dbId\": 2216211,\n        \"nodeName\": \"test_arift_openvpn\",\n        \"subnet\": \"192.168.0.0/28\",\n        \"tunnelPort\": null,\n        \"connectionPort\": null,\n        \"externalIp\": null,\n        \"internalIp\": \"192.168.0.3\",\n        \"sshKey\": null,\n        \"connectorSite\": {\n            \"dbId\": 2215976,\n            \"siteName\": \"test\",\n            \"siteDescription\": \"change_test\",\n            \"isAnyNodeActive\": false,\n            \"connectorNodeList\": null,\n            \"pageForSearch\": 0\n        },\n        \"instanceName\": null,\n        \"tunnelStatus\": \"other\",\n        \"heartbeat\": null,\n        \"clientId\": \"e609864c-bb9f-4d90-966c-5ed4cac32a77\",\n        \"vpnUsername\": \"efe.basol@krontech.com\",\n        \"vpnPassword\": null,\n        \"vpnConfig\": \"efe.basol@krontech.com\",\n        \"connectorType\": \"openvpn\",\n        \"pageForSearch\": 0,\n        \"instanceNameTunnelStatusPair\": [\n            {\n                \"instanceName\": \"arift\",\n                \"tunnelStatus\": \"waiting_client_setup\"\n            }\n        ]\n    }\n]"
        }
      ],
      "selectedLanguageId": "r68AbfpfP2iK8DOFVDnAx"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}