Datasource health status
GET
/v1/admin/datasources/health
const url = 'https://localhost:8080/v1/admin/datasources/health';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:8080/v1/admin/datasources/health \ --header 'Authorization: <Authorization>'Returns enabled datasource health for the authenticated member’s organization
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
data
Array<object>
object
datasource_id
string
datasource_name
string
datasource_type
string
error_message
string
last_checked
string
last_success
string
status
string
success
boolean
Example
{ "data": [ { "status": "healthy" } ]}Unauthorized
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Forbidden
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}Service Unavailable
Media typeapplication/json
object
error
string
message
string
success
boolean
Example
{ "error": "", "message": "Success", "success": true}