cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

msunilreddy
Newcomer

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 ?

 

 

4 REPLIES 4

AntonPineiro
DynaMight Guru
DynaMight Guru

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

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

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

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Julius_Loman
DynaMight Legend
DynaMight Legend

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

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts