Before you create or update custom configuration channels in the API, you should identify the host set IDs of the host sets you will be using in those channel definitions.
To identify host set IDs using the API:
Use an API to request a list of the host sets defined for the Endpoint Security server. Here is a sample cURL request. The host sets must already be defined in the Web UI.
curl 'https://<HX IP address>:<port number>/hx/api/v3/host_sets' -X 'GET' -H 'X-FeApi-Token: <API token>' -H 'Accept: application/json'The response body to the request provides the following information about each host set.
"_id": <host-set-ID>, "name": "<host-set-name>", "type": "<host-set-type>", "_revision": "yyyymmddnnnnnnnnnnnnnnn", "url": "<host-set-path>/<host-set-ID>" },For complete information on API custom configuration channel endpoints, see the Endpoint Security (HX) REST API Guide.
Locate the host sets you want to use in a custom configuration channel in the response body of the API request. Make note of their host set IDs.