Skip to main content

DataSource details

Get the registration details for the specified DataSource.

POST /api/open/v1/datasource/getDataSource

Requires “Query Settings Read” and read permission on the DataSource.

Request parameters​

ParameterTypeRequiredDescription
dataSourceIdIntegerYesDataSource ID.

Response fields​

Fields in dataTypeDescription
dataSourceIdIntegerDataSource ID.
instanceIdStringInstance identifier.
instanceDescStringDisplay name.
dataSourceTypeStringDataSource type. For supported values, see listDataSourceTypes.
envIdInteger or nullEnvironment ID.
lifeCycleStateStringCREATING (registering), CREATED (registered), DELETING (deregistering), LOCKED (locked).
versionStringDatabase version, returned when available.
hostStringDataSource address. Returned when the address is available and the caller has management permission on the DataSource.

Request example​

{
"dataSourceId": 42
}

Response example​

{
"requestId": "818698e3-3088-547e-a581-0f1e58aa82ef",
"code": "OK",
"msg": "Request succeeded.",
"data": {
"dataSourceId": 42,
"instanceId": "my-5samk76gx9hj2tr",
"instanceDesc": "Sales database",
"dataSourceType": "MySQL",
"envId": 3,
"lifeCycleState": "CREATED",
"version": "8.0.36",
"host": "sales-db.example.test:3306"
}
}