SweetConnect LogoSweetConnect
ApiDatabus datasources summary

List accessible summarized datasources

Retrieve all summarized datasources the authenticated user has access to within their organization

Access restricted to roles:

  • admin
  • manufacturer-admin
  • manufacturer-user
  • producer-admin
  • producer-user
GET
/v1/datasources-summary

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://test.sweetconnect.io/api/databus-controller/v1/datasources-summary"
{
  "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",
      "supportedFeatures": [
        "state",
        "log",
        "aggregatedMetrics"
      ]
    }
  ]
}
{
  "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": {}
    }
  ]
}