TrueSight API Documentation
OverviewAccountActionsAdministration
Alarms v1Alarms v2BatchingDashboards
DatasetsEventsExtended Metrics
GroupsHostgroupsMetersMetricsProduct
PluginsRelaysSourcesSource-TagsSynchronize Data
Tenants
Terms

GET/v1/account/sources/:lastModified?

Gets all source (host + data stream) information

Request URL parameters

lastModified

Optional. If specified and source information has not changed a 304 will be returned.

Example request:

curl https://api.truesight.bmc.com/v1/account/sources/:lastModified? \
-X GET \
-u <email>:<api-token>

Example response:

{
   "result": {
      "lastModified": 1234,
      "sources": [
         {
            "name": "gd-stage-worker1",
            "enabled": true,
            "type": "source",
            "streams": {
               "DISKUSE_SUMMARY": {
                  "enabled": true
               },
               "FORKRATE_PER_SECOND": {
                  "enabled": true
               }
            }
         },
         {
            "name": "gd-stage-worker-one",
            "enabled": false,
            "type": "host",
            "displayName": "foo"
         }
      ]
   }
}