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

PUT/v1/sources/:name

Creates or updates a source for a given name.

URL parameters

name

The name of the source

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.

Return value

Returns HTTP 202 Accepted, or HTTP 400 Bad Request if the source name in the request body doesn't match the source name URL parameter.

Example request:

curl https://api.truesight.bmc.com/v1/sources/service-01.prod.domain.com \
-X PUT \
-u <email>:<api-token> \
-H "Content-Type: application/json" \
-d '
{
   "name": "service-01.prod.domain.com",
   "last": 1478590690888
}'