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

V2 API - What is the Easiest Way to Get the Monitoring Mode Property?

crabbylou
Helper

What is the best way in the V2 API to retrieve the Monitoring Mode property? Can you do that by tag?

Thanks,

Lou

3 REPLIES 3

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

Are you asking to know if host is in fullstack or inframode... ?

Best regards

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

Yes. I have calls to retrieve properties for an entity. I'm assuming it's like any other property.

Hi,

You can make this call. Notice field "properties.monitoringMode" was added in the entity selector:

curl -X 'GET' \
  'https://XXXXX.live.dynatrace.com/api/v2/entities?entitySelector=type%28%22HOST%22%29&fields=properties.monitoringMode' \
  -H 'accept: application/json; charset=utf-8' \
  -H 'Authorization: Api-Token XXXXX'

Best regards

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

Featured Posts