27 Jun 2018 02:04 PM - last edited on 23 Feb 2023 03:25 PM by Karolina_Linda
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?
Solved! Go to Solution.
27 Jun 2018 09:10 PM
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
27 Jun 2018 09:15 PM
Thanks! That worked. I was confused because the API documentation said that "type" is required.
28 Jun 2018 02:39 PM
Ryan, thanks for the feedback. I've created a documentation update ticket to address this point: UA-3075