TrueSight API Documentation
OverviewAccountActionsAdministration
Alarms v1Alarms v2BatchingDashboards
DatasetsEventsExtended Metrics
HostgroupsGroupsMetersMetricsProduct
PluginsRelaysSourcesSynchronize Data
Tenants
Terms

PUT/v1/sources/:name

Adds or updates a specific source by source name.

Once sources are added they can be queried via groups or source queries.

Request body properties

name

The name of the source

last [optional]

The last epoch time this source is considered to be active. If the last property is not supplied the current time will be used.

Example request:

curl https://api.truesight.bmc.com/v1/sources/:name \
-X PUT \
-u <email>:<api-token> \
-H "Content-Type: application/json" \
-d '
{
   "name": "service-01.prod-uswest2.domain.com",
   "last": 1478590690888,
   "tenantId": "78facb56-f21c-40bb-9cb5-ddae78fb47b9"
}'

Response:

{
   "name": "service-01.prod-uswest2.domain.com",
   "tenantId": "78facb56-f21c-40bb-9cb5-ddae78fb47b9",
   "last": 1478590690888
}