JDBCドライバ一覧照会

システムに登録されたJDBCドライバの一覧を照会します。

HTTPリクエスト

GET /api/sonar/jdbc-drivers
cURL例
curl -H "Authorization: Bearer <API_KEY>" \
     https://HOSTNAME/api/sonar/jdbc-drivers
リクエストパラメータ

なし

正常応答

{
  "jdbc_drivers": [
    {
      "driver_name": "MySQL",
      "driver_class": "com.mysql.cj.jdbc.Driver",
      "url_prefix": "jdbc:mysql://",
      "test_query": "SELECT 1",
      "connection_string_template": "jdbc:mysql://{host}:{port}/{database}"
    }
  ]
}
キー説明
driver_name文字列ドライバ名
driver_class文字列ドライバクラス名
url_prefix文字列URLプレフィックス
test_query文字列接続テストクエリ
connection_string_template文字列接続文字列テンプレート