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

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? 

 

 

3 REPLIES 3

yanezza
Dynatrace Mentor
Dynatrace Mentor

Hi,
it is the setting uuid:

  •  you can get it using MONACO and check the file name
  • or you can decode (base64) the objectid 😉 - 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

Yanez Diego Parolin

DanielS
DynaMight Guru
DynaMight Guru

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

DanielS_1-1744215374926.png

 

 

 

Dynatrace Certified Professional @ www.dosbyte.com

ChadTurner
DynaMight Legend
DynaMight Legend

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: 

ChadTurner_0-1744314136913.png

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. 

-Chad

Featured Posts