cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extracting Management Zone IDs from Dynatrace SaaS Tenant

Sajarra
Frequent Guest

Hello Team,

Could you please advise how to extract Management Zone IDs (not the Object IDs) from Dynatrace either by Data Explorer /DQL or API? Tried using API but it's giving only the Object IDs, not the management zone IDs. Thank you.

8 REPLIES 8

KeeganNelson
Dynatrace Advisor
Dynatrace Advisor

Hello Sajarra. 

If you head over to the management zone settings (Settings > Preferences > Management Zones > Management Zones Settings) and expand one of the management zones, you'll be able to see the ID. 

KeeganNelson_0-1740769553337.png

Hope this helps!

 

Sajarra
Frequent Guest

Thank you for your inputs.. I need to extract the mzIDs for all the MZs (400+) within our environment. 

Could I ask the use case for extracting all the mzID's it may help in finding a solution. 

 

Sajarra
Frequent Guest

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. 

Hi,

If you want to filter production data, I would suggest you filter using tags.

Best regards

❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Yes, I can extract the problem events with 'Tags'. Looks like we don't have any options to extract the mzIDs from Dynatrace. Working with Dynatrace consultant for our team and he is checking with Dynatrace Dev (API team). Thank you all your supports.

 

fetch dt.davis.problems
| fieldsAdd entity.type, timestamp, host.name, display_id, affected_entity_ids, affected_entity_types, Description
| filter matchesValue(entity_tags,"AppCode:XXX")
| sort event.status asc

Sajarra
Frequent Guest

Thank you but it's not solving the issue. Through Dynatrace APIs, I'm unable to extract the mzIDs.

Featured Posts