24 Jan 2024
03:23 PM
- last edited on
08 Aug 2024
02:22 PM
by
Michal_Gebacki
Hi, I am trying to fetch all entities as mentioned on official documentation https://{environmentid}.live.dynatrace.com/api/v2/entities
and getting response:
Solved! Go to Solution.
24 Jan 2024 03:32 PM
Hi,
I think you are missing entitySelector:
curl -X 'GET' \
'https://XXXXXXXXXX.live.dynatrace.com/api/v2/entities?entitySelector=type%28%22HOST%22%29' \
-H 'accept: application/json; charset=utf-8' \
-H 'Authorization: Api-Token XXXXXXXXXX'Best regards
07 Dec 2025 01:31 PM
This only gets HOST entities, not all entities. Shouldn't there be like a wildcard to use to include all entities?
07 Dec 2025 07:44 PM
@Khalid_Alkhouli , no the Dynatrace Classic API requires an entityType. You can loop through the available entities using get entity types API and fetch those entity per type. It's not possible to return multiple entity types in one query.
Featured Posts