Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »


1. Query a automap by id

URL: https://123.123.123.123/automaps/view/$ID.json

Methode: GET

Response: JSON



Response on successful API call
{
    "automap": {
        "Automap": {
            "id": "1",
            "name": "All",
            "container_id": "1",
            "description": "All Services of all hosts",
            "host_regex": ".+",
            "service_regex": ".+",
            "show_ok": true,
            "show_warning": true,
            "show_critical": true,
            "show_unknown": true,
            "show_acknowledged": true,
            "show_downtime": true,
            "show_label": false,
            "font_size": "4",
            "created": "2015-12-09 11:44:34",
            "modified": "2015-12-09 11:47:00"
        }
    },
    "hosts": {
        "2": "srvkvm01.local.lan",
        "6": "srvkvm03.local.lan",
        "8": "srvkvm04.local.lan",
        "1": "localhost"
    },
    "services": [
        {
            "Service": {
                "id": "1",
                "uuid": "74fd8f59-1348-4e16-85f0-4a5c57c7dd62",
                "name": null,
                "host_id": "1"
            },
            "Servicetemplate": {
                "name": "Ping"
            },
            "ServiceObject": {
                "object_id": "41"
            },
            "Servicestatus": {
                "current_state": "0",
                "problem_has_been_acknowledged": "0",
                "scheduled_downtime_depth": "0"
            },
            "Host": {
                "id": "1",
                "name": "localhost"
            }
        }
	}
}






2. Query all automaps

URL: https://123.123.123.123/automaps.json

Methode: GET

Response: JSON



Response on successful API call
{
    "all_automaps": [
        {
            "Automap": {
                "id": "1",
                "name": "All",
                "container_id": "1",
                "description": "All Services of all hosts",
                "host_regex": ".+",
                "service_regex": ".+",
                "show_ok": true,
                "show_warning": true,
                "show_critical": true,
                "show_unknown": true,
                "show_acknowledged": true,
                "show_downtime": true,
                "show_label": false,
                "font_size": "4",
                "created": "2015-12-09 11:44:34",
                "modified": "2015-12-09 11:47:00"
            }
        }
    ]
}
  • No labels