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

POST/v1/groups

Adds a group and returns obj with generated slug id.

Request body properties

name

The human readable name that will be used to refer to the group throughout the system. If the name property is not supplied a 400 response will be returned.

query

The query which will be used to pull sources for this group. If the query property is not supplied a 400 response will be returned.

Example request:

curl https://api.truesight.bmc.com/v1/groups \
-X POST \
-u <email>:<api-token> \
-H "Content-Type: application/json" \
-d '
{
   "name": "prod servers",
   "query": "*prod* && last: 2h"
}'

Response:

{
   "id": "prod-servers",
   "name": "prod servers",
   "tenantId": "73facb56-f21c-40bb-9cb5-ddae78fb47b9",
   "query": "*prod* && last: 2h"
}