Unable to Retrieve all applications using /api/v2/entities?entitySelector=type(APPLICATION)

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 ?

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

Hi,

We are using the same API only. will it return all types of Applications like Web applications, Mobile apps, Custom applications ?

Thanks,

Sunil

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

No, it returns just Web applications, for mobile you need to query for type(MOBILE_APPLICATION), and for custom apps type(CUSTOM_APPLICATION).