list_hosts
Retrieve host entities from Dynatrace Smartscape via Grail DQL or classic API, with optional tag or management zone filters.
Instructions
Queries Smartscape host entities via Grail DQL (Gen3-native). Pass useClassic:true to use the classic Entities v2 API on Gen2 tenants. Optional tag/management-zone filters only work with useClassic:true (Gen2).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Filter by tag, e.g. 'env:prod'. Only applied when useClassic:true. | |
| managementZone | No | Filter by management zone name. Only applied when useClassic:true. | |
| pageSize | No | ||
| useClassic | No | Use the classic Entities v2 API instead of Grail DQL (only for Gen2 tenants that still expose /api/v2/entities). |