What value do I use to pull the ID for maintenance windows for an API Call?

Hi all,

I’m trying to determine how to pull the GUUID for maintenance windows in Dynatrace. I’m not talking about the Object ID, as that is completely separate but possibly called the GUUID?

When you go into Settings in Dynatrace, then navigate to Maintenance Windows and then finally a specific one, the URL Address Bar changes to something like:

&id=049305939059306593-49205ir24k0rijw34g0f4wjtg0w3jg503t-0awe-9jg

I’d like to ingest this from the API, but don’t know what field it comes under? Any ideas?

Hi,
it is the setting uuid:

  • you can get it using MONACO and check the file name
  • or you can decode (base64) the objectid :wink: - I think you will go with this option

example:

vu9U3hXa3q0AAAABACNidWlsdGluOmFsZXJ0aW5nLm1haW50ZW5hbmNlLXdpbmRvdwAGdGVuYW50AAZ0ZW5hbnQAJDNhZmM4ZmI2LTA5OTgtM2RlZS05MzY5LTlkZTRiZDU5MGJmNr7vVN4V2t6t

will be

¾ïTÞÚÞ­����#builtin:alerting.maintenance-window�tenant�tenant�$3afc8fb6-0998-3dee-9369-9de4bd590bf6¾ïTÞÚÞ­

and my UUID is 3afc8fb6-0998-3dee-9369-9de4bd590bf6

Hi @badgerfifteen , you can call the https://{{DT_HOST}}/api/config/v1/maintenanceWindows and there you can obtain the id’s:

If you using API V2 the easiest way to do this is in the UI. Select your Targeted MW, and click the ‘…’ and pick API:

If you are using API V1 you can then use the URL:

ChadTurner_1-1744314217585.png

Depending on what API i’m using, those are the fastest routes that I use to pull them one by one as needed.