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

GET/v1/hostgroups/search

Searches the hostgroups in your account

URL parameters

name

The hostgroup name to search for. Currently supported search parameters:

Example request:

curl https://api.truesight.bmc.com/v1/hostgroups/search?name=web-servers \
-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