{
"datasource": {
"type": "KqPostgreSQL",
"server": "{{dbserver_ip}}",
"instance": "5432",
"username": "postgres",
"password": "postgres"
}
}
curl --location --request POST 'http://172.16.1.44:9800/rest/services/datastore/testconnect' \
--header 'ua_token: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"datasource": {
"type": "KqPostgreSQL",
"server": "{{dbserver_ip}}",
"instance": "5432",
"username": "postgres",
"password": "postgres"
}
}'
{
"resultcode": "success",
"result": {
"connected": true
},
"time": 0.15
}