ApiDatabus datasources
Retrieve a datasource by ID
Fetch a single datasource by its UUID if the user has access
Access restricted to roles:
- admin
- manufacturer-admin
- manufacturer-user
Path Parameters
datasourceId*string
UUID of the datasource
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://test.sweetconnect.io/api/databus-controller/v1/datasources/9488c561-749f-4b3d-8c2f-30e867ba66db"{
"data": {
"id": "ce452d7d-448a-4d42-98e0-ac879f7baae9",
"datasourceType": "InfluxDB_v2",
"name": "influxdb-v2-org-12345",
"organizationId": "ce452d7d-448a-4d42-98e0-ac879f7baae9",
"manufacturerId": "ce452d7d-448a-4d42-98e0-ac879f7baae9",
"adapter": {
"org": "sweetconnect",
"url": "https://influxdb.12345.example.org",
"token": "readonly-token",
"bucket": "default"
},
"supportedFeatures": [
"state",
"log",
"aggregatedMetrics"
],
"createdAt": "2025-02-27T12:00:00.000Z",
"updatedAt": "2025-02-27T12:00:00.000Z"
}
}{
"errors": [
{
"errorCode": "RequestValidationError",
"message": "The 'username' field is required.",
"extension": {
"type": "body",
"key": "username"
}
}
]
}{
"errors": [
{
"errorCode": "Unauthorized",
"message": "Authentication is required to access this resource.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "NoPermission",
"message": "You do not have permission to access this resource.",
"extension": {}
}
]
}{
"errors": [
{
"errorCode": "NotFound",
"message": "The requested resource was not found.",
"extension": {}
}
]
}