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

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

Thanks,

Lou

Hi,

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

Best regards

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