# use builtin: formula to get list of host and their properties in that management zone

**URL:** <https://community.dynatrace.com/t/use-builtin-formula-to-get-list-of-host-and-their-properties-in-that-management-zone/57112>\
**Category:** DQL\
**Tags:** dql\
**Created:** [October 8, 2026, 4:45pm UTC](https://community.dynatrace.com/t/use-builtin-formula-to-get-list-of-host-and-their-properties-in-that-management-zone/57112 "2026-10-08T16:45:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ushag](https://avatars.discourse-cdn.com/v4/letter/u/db5fbb/32.png) [@ushag](https://community.dynatrace.com/u/ushag)\
**Post date:** [October 8, 2026, 4:45pm UTC](https://community.dynatrace.com/t/use-builtin-formula-to-get-list-of-host-and-their-properties-in-that-management-zone/57112/1 "2026-10-08T16:45:28Z")

</div>

How can I use a&nbsp;builtin: query to list all my host and their IP

builtin:pgi.availability.state:filter(in(“dt.entity.host”,entitySelector(“type(~“HOST~”), tag(~”[Environment]IP:~“)”)))

---

<div class="post-metadata">

**Author:** ![anuj-jain08](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/anuj-jain08/32/38454_2.png) [@anuj-jain08](https://community.dynatrace.com/u/anuj-jain08)\
**Post date:** [October 9, 2026, 6:40am UTC](https://community.dynatrace.com/t/use-builtin-formula-to-get-list-of-host-and-their-properties-in-that-management-zone/57112/2 "2026-10-09T06:40:33Z")

</div>

Hello&nbsp;[@ushag](https://community.dynatrace.com/user/84952),

You can use below DQL:

```auto
smartscapeNodes "HOST"
| filter matchesValue(name,"<your management Zone>")
| fieldsAdd managementZone = name
| fields
    managementZone,
    id,
    host.name,
    os.type,
    os.version,
    cloud.provider,
    aws.region,
    azure.location,
    host.logical.cpu.cores,
    host.physical.memory,
    host.ip_addresses
| fieldsAdd memory_gb = round(toDouble(host.physical.memory) / 1024 / 1024 / 1024, decimals: 1)
| sort host.name asc

```
