---
title: Search Connector Site
slug: kron-pam-api-collection-3-9-0/search-connector-site
docTags: 
createdAt: 2026-10-21T06:10:28.166Z
---

{
  "id": "2KXKDh5MdXkardqtwCY4y",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/tenantConnector/connectorSite/searchSite",
    "name": "",
    "description": "<h3>Request Overview</h3>\n<p>This request is used to search for an existing connector site within the Kron PAM system. Connector sites represent remote locations or data centers that need to establish secure connections with the central Kron PAM server. By searching for a connector site, administrators can retrieve details such as site name, description, and associated connector nodes.</p>\n<p><strong>Body Parameters:</strong></p>\n<ul>\n<li><code>siteName</code> (string): The name of the site to search for. Example: <code>\"test\"</code></li>\n</ul>\n<p>This request returns details of the connector site matching the provided site name, including its description, node activity status, and associated connector nodes.B199</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    \"siteName\": \"{{name}}\",\r\n    \"siteDescription\": \"{{description}}\"\r\n}\r\n",
          "value": "{\r\n    \"siteName\": \"{{name}}\",\r\n    \"siteDescription\": \"{{description}}\"\r\n}\r\n",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Search Connector Site",
        "jsonExample": "[\n    {\n        \"dbId\": 2215976,\n        \"siteName\": \"test\",\n        \"siteDescription\": \"change_test\",\n        \"isAnyNodeActive\": false,\n        \"connectorNodeList\": [\n            \"test_arift_openvpn\"\n        ],\n        \"pageForSearch\": 0\n    }\n]"
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "2B_4gXVhIK8Xrx4Vopdjc",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/tenantConnector/connectorSite/searchSite \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --header 'x-xsrf-token: {{csrftoken}}' \\\n     --data '\"{\\r\\n    \\\"siteName\\\": \\\"{{name}}\\\",\\r\\n    \\\"siteDescription\\\": \\\"{{description}}\\\"\\r\\n}\\r\\n\"'"
        },
        {
          "id": "OltVwNbA8bfZ-1szwLfZM",
          "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    \\\"siteName\\\": \\\"{{name}}\\\",\\r\\n    \\\"siteDescription\\\": \\\"{{description}}\\\"\\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/connectorSite/searchSite\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "mQd8wWQDbilm7oABpyRMF",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/tenantConnector/connectorSite/searchSite\")\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    \\\"siteName\\\": \\\"{{name}}\\\",\\r\\n    \\\"siteDescription\\\": \\\"{{description}}\\\"\\r\\n}\\r\\n\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "xMdWXoVIN8ZGP9zxNf0_W",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/tenantConnector/connectorSite/searchSite\"\n\npayload = json.dumps(\"{\\r\\n    \\\"siteName\\\": \\\"{{name}}\\\",\\r\\n    \\\"siteDescription\\\": \\\"{{description}}\\\"\\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": "2B_4gXVhIK8Xrx4Vopdjc"
    },
    "results": {
      "languages": [
        {
          "id": "FrHcu1jLvXAlBA36W75bh",
          "language": "200",
          "code": "[\n    {\n        \"dbId\": 2215976,\n        \"siteName\": \"test\",\n        \"siteDescription\": \"change_test\",\n        \"isAnyNodeActive\": false,\n        \"connectorNodeList\": [\n            \"test_arift_openvpn\"\n        ],\n        \"pageForSearch\": 0\n    }\n]"
        }
      ],
      "selectedLanguageId": "FrHcu1jLvXAlBA36W75bh"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}