discoveryrule_get
Retrieve discovery rules from Zabbix with customizable filters for item IDs, host IDs, and template IDs. Returns JSON-formatted data for precise monitoring and integration.
Instructions
Get discovery rules from Zabbix with optional filtering.
Args:
itemids: List of discovery rule IDs to retrieve
hostids: List of host IDs to filter by
templateids: List of template IDs to filter by
output: Output format
search: Search criteria
filter: Filter criteria
Returns:
str: JSON formatted list of discovery rules
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filter | No | ||
hostids | No | ||
itemids | No | ||
output | No | extend | |
search | No | ||
templateids | No |
Input Schema (JSON Schema)
{
"properties": {
"filter": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Filter"
},
"hostids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Hostids"
},
"itemids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Itemids"
},
"output": {
"default": "extend",
"title": "Output",
"type": "string"
},
"search": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Search"
},
"templateids": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Templateids"
}
},
"type": "object"
}