# Host disk usage API call

**URL:** <https://community.dynatrace.com/t/host-disk-usage-api-call/43335>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [December 21, 2023, 2:59pm UTC](https://community.dynatrace.com/t/host-disk-usage-api-call/43335 "2023-12-21T14:59:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [December 24, 2023, 12:14pm UTC](https://community.dynatrace.com/t/host-disk-usage-api-call/43335/5 "2023-12-24T12:14:49Z")

</div>

Hi,

If you change visualization to “Single value”:

 ![AntonPineiro_0-1703419966595.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/a/8a78ff61995951290a9fae2f9d4e61c6da6a6253.png)

Notice “_&resolution=Inf_” is added in the end when you copy request from wizard. For example:

```markup
curl -X GET "https://{environment_id}.live.dynatrace.com/api/v2/metrics/query?metricSelector=(builtin:host.disk.usedPct:filter(and(or(in(\"dt.entity.host\",entitySelector(\"type(host),entityName.equals(~\"XXXX~\")\"))))):splitBy():sort(value(auto,descending))):names&from=-2h&to=now&resolution=Inf" -H "accept: application/json" -H "Authorization: Api-Token XXXX-XXXX"

```

Best regards

---

_[View the full topic](https://community.dynatrace.com/t/host-disk-usage-api-call/43335)._
