Hey all, a little patience here please. I'm new to the zabbix api and I'm trying to create a query that will return all the current maintenance windows with a specific tag. I've read the documentation and unfortunately I am either not understanding it or having problems with getting it to work.
My query looks like this:
Code:
{
"jsonrpc": "2.0",
"method": "maintenance.get",
"params": {
"groupids": "<gid>",
"selectTags": [
"tag",
"value"
],
"filter": [
{
"tags": [
{
"tag": "<tag1>",
"value": "<value1>",
"operator": 0
}
]
}
]
},
"auth": "<token>",
"id": 1
}
End goal here is to create a script that will return the existing and current maintenance windows that apply to a specific group. Am I using the wrong query?