Connection & Status
Inspect a datasource's status and connection settings, test connectivity, and update the connection.
GET /api/datasources/{id}/status
Get the driver-reported status (health/availability) of a datasource.
Path Parameters:
| Parameter | Type | Description |
|---|---|---|
id | string | Datasource ID |
{
"_links": {
"self": {
"href": "https://informer.example.com/api/datasources/admin%3Anorthwind/status"
}
},
"status": "online"
}
GET /api/datasources/{id}/connection
Get the driver-specific connection settings.
Response:
The connection config. The password is returned encrypted (encrypted:iv:...), never as plaintext.
{
"_links": {
"self": {
"href": "https://informer.example.com/api/datasources/admin%3Anorthwind/connection"
}
},
"host": "localhost",
"pool": {
"max": 5,
"min": 0,
"idle": 10000,
"acquire": 10000
},
"port": 5432,
"user": "northwinduser",
"database": "northwind",
"password": "encrypted:iv:0000000000000000",
"idleTimeoutMillis": 7
}
POST /api/datasources/{id}/_ping
Test connectivity using the stored connection.
Path Parameters:
| Parameter | Type | Description |
|---|---|---|
id | string | Datasource ID |
Request Body:
Optional. An options object to test alternative connection settings instead of the stored ones; send {} to test the stored connection.
{}
true
PUT /api/datasources/{id}/connection
Replace the connection settings.
Permissions: datasource:write
Request Body:
The driver-specific connection object. The password is stored encrypted.
{
"host": "db.example.com",
"port": 5432,
"database": "northwind",
"user": "reporting",
"password": "secretPassword"
}
{
"_links": {
"self": {
"href": "https://informer.example.com/api/datasources/admin%3Anorthwind/connection"
}
},
"host": "db.example.com",
"port": 5432,
"database": "northwind",
"user": "reporting",
"password": "encrypted:iv:0000000000000000",
"ssl": {
"enabled": false,
"rejectUnauthorized": false
}
}
POST /api/datasources/{id}/connection/_reset
Purge the driver's pooled connections for this datasource. Only valid for drivers that pool connections (returns 400 otherwise). Responds 200 with no body on success.