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

Maintenance Window API - valid values for "type" in matchdef

ryan_thames
Newcomer

Hi, I'm trying to use the API to create a maintenance window. What I want to do is create a maintenance window with a scope that matches all entities of a certain tag, for example:

"scope": {
"matches": [
{
"type": "ALL",
"tags": [
{
"context": "CONTEXTLESS",
"key": "CUSTOM_TAG"
}
]
}
]
}

However, I'm not sure what I should enter in for "type" - I can't find a list of valid values for it (the only one I know of is PROCESS_GROUPS). Is there some documentation out there that has a list of all valid values for type?

3 REPLIES 3

nj_njoku
Inactive

Hey Ryan

You should try the JSON below to accomplish what you want

you should not need "type" if you have the entities set the way I have above. Let em know if this works for you.

Thanks

NJ

ryan_thames
Newcomer

Thanks! That worked. I was confused because the API documentation said that "type" is required.

chris_thompson
Dynatrace Participant
Dynatrace Participant

Ryan, thanks for the feedback. I've created a documentation update ticket to address this point: UA-3075

Featured Posts