SweetConnect LogoSweetConnect
ApiDatabus datasources summary

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
  • producer-admin
  • producer-user
GET
/v1/datasources-summary/{datasourceId}

Path Parameters

datasourceId*string

UUID of the datasource

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://test.sweetconnect.io/api/databus-controller/v1/datasources-summary/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",
    "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": {}
    }
  ]
}
{
  "errors": [
    {
      "errorCode": "NotFound",
      "message": "The requested resource was not found.",
      "extension": {}
    }
  ]
}