18 Feb 2022
08:43 AM
- last edited on
20 Jun 2023
11:49 PM
by
MaciejNeumann
I am trying to pull in ALL my hostgroup ID's from the DT API.
It used to work using
Solved! Go to Solution.
You can try using the Monitored Entities API, using the entity type HOST_GROUP should give you what you are looking for:
/api/v2/entities?entitySelector=type%28%22host_group%22%29
Hi Axel,
There appears to be a bug in this API, when issuing a nextPageKey parameter is throws an exception
{
"error": {
"code": 400,
"message": "Constraints violated.",
"constraintViolations": [
{
"path": "entitySelector",
"message": "must not be used in combination with nextPageKey query parameter.",
"parameterLocation": "QUERY",
"location": null
},
{
"path": "pageSize",
"message": "must not be used in combination with nextPageKey query parameter.",
"parameterLocation": "QUERY",
"location": null
}
]
}
}
You must remove ALL parameters before using the nextPageKey or you will get the errors you show here.
Featured Posts