---
title: Test Database Connection
slug: kron-pam-api-collection-381-patch3/test-database-connection
docTags: 
createdAt: 2026-10-21T06:07:16.182Z
---

{
  "id": "cau1sj_3d5sgHtoEuGPL2",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "{{url}}/aioc-rest-web/rest/discovery/testDatabaseConnection",
    "name": "",
    "description": "",
    "contentType": "application/json",
    "request": {
      "headerParameters": [
        {
          "name": "Content-Type",
          "description": "",
          "default": "application/json",
          "value": "application/json",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "pathParameters": [
        {
          "name": "url",
          "description": "",
          "default": "url",
          "value": "url",
          "type": "string"
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "description": "",
          "default": "{\n  \"managementIp\": \"10.20.42.224\",\n  \"port\": 1521,\n  \"dbType\": \"ORACLE\",\n  \"username\": \"system\",\n  \"password\": \"password\"\n}",
          "value": "{\n  \"managementIp\": \"10.20.42.224\",\n  \"port\": 1521,\n  \"dbType\": \"ORACLE\",\n  \"username\": \"system\",\n  \"password\": \"password\"\n}",
          "type": "object"
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "PvJ_7rHtuy211ZxvG6_GL",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/discovery/testDatabaseConnection \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '\"{\\n  \\\"managementIp\\\": \\\"10.20.42.224\\\",\\n  \\\"port\\\": 1521,\\n  \\\"dbType\\\": \\\"ORACLE\\\",\\n  \\\"username\\\": \\\"system\\\",\\n  \\\"password\\\": \\\"password\\\"\\n}\"'"
        },
        {
          "id": "Rx7g5DpekSJuHBV72ET7v",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify(\"{\\n  \\\"managementIp\\\": \\\"10.20.42.224\\\",\\n  \\\"port\\\": 1521,\\n  \\\"dbType\\\": \\\"ORACLE\\\",\\n  \\\"username\\\": \\\"system\\\",\\n  \\\"password\\\": \\\"password\\\"\\n}\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/discovery/testDatabaseConnection\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "EOgBFFn4wmuQ4rZ8_jF3-",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/discovery/testDatabaseConnection\")\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.body = JSON.dump(\"{\\n  \\\"managementIp\\\": \\\"10.20.42.224\\\",\\n  \\\"port\\\": 1521,\\n  \\\"dbType\\\": \\\"ORACLE\\\",\\n  \\\"username\\\": \\\"system\\\",\\n  \\\"password\\\": \\\"password\\\"\\n}\")\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "Tk77L3iVlEnyTyZqnD6JX",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"{{url}}/aioc-rest-web/rest/discovery/testDatabaseConnection\"\n\npayload = json.dumps(\"{\\n  \\\"managementIp\\\": \\\"10.20.42.224\\\",\\n  \\\"port\\\": 1521,\\n  \\\"dbType\\\": \\\"ORACLE\\\",\\n  \\\"username\\\": \\\"system\\\",\\n  \\\"password\\\": \\\"password\\\"\\n}\")\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "PvJ_7rHtuy211ZxvG6_GL"
    },
    "results": {
      "languages": [
        {
          "id": "Ekd_fLD2D0zN-JW3iBqOV",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "Ekd_fLD2D0zN-JW3iBqOV"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}