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