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

GET/v1/hostgroups/:hostgroupId

Retrieves a single hostgroup by its id

URL parameters

hostgroupId

The Id of the hostgroup you are requesting

Example request:

curl https://api.truesight.bmc.com/v1/hostgroups/:hostgroupId \
-X GET \
-u <email>:<api-token>

Response:

{
   "id": 8332,
   "name": "web-servers",
   "hostnames": [
      "web1",
      "web2"
   ],
   "system": false
}

An empty list of hostnames will match all hostnames