# Extracting Management Zone IDs from Dynatrace SaaS Tenant

**URL:** <https://community.dynatrace.com/t/extracting-management-zone-ids-from-dynatrace-saas-tenant/50516>\
**Category:** Dynatrace API\
**Tags:** dql, management-zones, dynatrace-managed, dynatrace-api\
**Created:** [February 28, 2025, 6:10pm UTC](https://community.dynatrace.com/t/extracting-management-zone-ids-from-dynatrace-saas-tenant/50516 "2025-02-28T18:10:36Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Sajarra](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Sajarra](https://community.dynatrace.com/u/Sajarra)\
**Post date:** [February 28, 2025, 8:38pm UTC](https://community.dynatrace.com/t/extracting-management-zone-ids-from-dynatrace-saas-tenant/50516/5 "2025-02-28T20:38:38Z")

</div>

We are collecting few SLO/Infrastructure metrics from Dynatrace through a Python Script (Based on AppCodes). Since we kept our Prod and DR servers in different MZs, the output is with multiple mzIDs.. To filter Prod data, we needed the mzIDs.

---

_[View the full topic](https://community.dynatrace.com/t/extracting-management-zone-ids-from-dynatrace-saas-tenant/50516)._
