02 Feb 2024 07:04 AM
Hi Team,
We are using below API to get all applications but its not getting all applications.
/api/v2/entities?entitySelector=type(APPLICATION)&from=now-5y&fields=+properties,firstSeenTms,lastSeenTms&pageSize=4000
Is this API will return all web, custom and mobile applications ?
Solved! Go to Solution.
02 Feb 2024 08:23 AM
Hi,
I am not sure, I would use this call:
curl -X 'GET' \
'https://XXXXXXX.live.dynatrace.com/api/v2/entities?entitySelector=type%28%22APPLICATION%22%29' \
-H 'accept: application/json; charset=utf-8' \
-H 'Authorization: Api-Token XXXXXXX'
Best regards
02 Feb 2024 09:21 AM - edited 02 Feb 2024 09:21 AM
Hi,
We are using the same API only. will it return all types of Applications like Web applications, Mobile apps, Custom applications ?
Thanks,
Sunil
02 Feb 2024 10:15 AM
Hi,
I do not have set up mobile applications, my sugestion is try it.
If you can see mobile applications, answer is yes.
Best regards
02 Feb 2024 11:55 AM - edited 02 Feb 2024 11:56 AM
No, it returns just Web applications, for mobile you need to query for type(MOBILE_APPLICATION), and for custom apps type(CUSTOM_APPLICATION).