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

**URL:** <https://community.dynatrace.com/t/v2-api-what-is-the-easiest-way-to-get-the-monitoring-mode-property/46639>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [July 16, 2024, 9:27pm UTC](https://community.dynatrace.com/t/v2-api-what-is-the-easiest-way-to-get-the-monitoring-mode-property/46639 "2024-07-16T21:27:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crabbylou](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@crabbylou](https://community.dynatrace.com/u/crabbylou)\
**Post date:** [July 16, 2024, 9:27pm UTC](https://community.dynatrace.com/t/v2-api-what-is-the-easiest-way-to-get-the-monitoring-mode-property/46639/1 "2024-07-16T21:27:23Z")

</div>

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

Thanks,

Lou

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [July 16, 2024, 10:38pm UTC](https://community.dynatrace.com/t/v2-api-what-is-the-easiest-way-to-get-the-monitoring-mode-property/46639/2 "2024-07-16T22:38:05Z")

</div>

Hi,

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

Best regards

---

<div class="post-metadata">

**Author:** ![crabbylou](https://avatars.discourse-cdn.com/v4/letter/c/7c8e57/32.png) [@crabbylou](https://community.dynatrace.com/u/crabbylou)\
**Post date:** [July 17, 2024, 2:45pm UTC](https://community.dynatrace.com/t/v2-api-what-is-the-easiest-way-to-get-the-monitoring-mode-property/46639/3 "2024-07-17T14:45:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [July 17, 2024, 7:35pm UTC](https://community.dynatrace.com/t/v2-api-what-is-the-easiest-way-to-get-the-monitoring-mode-property/46639/4 "2024-07-17T19:35:46Z")

</div>

Hi,

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

```markup
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
