Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten


1. Hole eine Kontaktgruppe per ID

URL: https://123.123.123.123/contactgroups/$ID.json

Methode: GET

Antwort: JSON


Antwort auf erfolgreiche API Abfrage
{
    "contactgroup": {
        "Contactgroup": {
            "id": "1",
            "uuid": "ae4d5cf1-e386-49cd-ac59-6d6193a5c5c0",
            "container_id": "7",
            "description": "Infoaccount"
        },
        "Container": {
            "id": "7",
            "containertype_id": "6",
            "name": "info",
            "parent_id": "1",
            "lft": "32",
            "rght": "33"
        },
        "Contact": [
            {
                "id": "6",
                "uuid": "1513a066-e0c4-4265-829d-b8d3781601aa",
                "name": "openitcockpitSupport",
                "description": "openitcockpit Support",
                "email": "openitcockpit@support.it-novum.com",
                "phone": "00491",
                "host_timeperiod_id": "4",
                "service_timeperiod_id": "4",
                "host_notifications_enabled": "1",
                "service_notifications_enabled": "1",
                "notify_service_recovery": "1",
                "notify_service_warning": "1",
                "notify_service_unknown": "1",
                "notify_service_critical": "1",
                "notify_service_flapping": "1",
                "notify_service_downtime": "0",
                "notify_host_recovery": "1",
                "notify_host_down": "1",
                "notify_host_unreachable": "1",
                "notify_host_flapping": "1",
                "notify_host_downtime": "0",
                "ContactsToContactgroup": {
                    "id": "1",
                    "contact_id": "6",
                    "contactgroup_id": "1"
                }
            }
        ]
    }
}


2. Hole alle existierenden Kontaktgruppen

URL: https://123.123.123.123/contactgroups.json

Methode: GET

Antwort: JSON


Antwort auf erfolgreiche API Abfrage
{
    "all_contactgroups": [
        {
            "Contactgroup": {
                "id": "1",
                "uuid": "ae4d5cf1-e386-49cd-ac59-6d6193a5c5c0",
                "container_id": "7",
                "description": "Infoaccount"
            },
            "Container": {
                "id": "7",
                "containertype_id": "6",
                "name": "info",
                "parent_id": "1",
                "lft": "32",
                "rght": "33"
            },
            "Contact": [
                {
                    "id": "6",
                    "uuid": "1513a066-e0c4-4265-829d-b8d3781601aa",
                    "name": "openitcockpitSupport",
                    "description": "openitcockpit Support",
                    "email": "openitcockpit@support.it-novum.com",
                    "phone": "00491",
                    "host_timeperiod_id": "4",
                    "service_timeperiod_id": "4",
                    "host_notifications_enabled": "1",
                    "service_notifications_enabled": "1",
                    "notify_service_recovery": "1",
                    "notify_service_warning": "1",
                    "notify_service_unknown": "1",
                    "notify_service_critical": "1",
                    "notify_service_flapping": "1",
                    "notify_service_downtime": "0",
                    "notify_host_recovery": "1",
                    "notify_host_down": "1",
                    "notify_host_unreachable": "1",
                    "notify_host_flapping": "1",
                    "notify_host_downtime": "0",
                    "ContactsToContactgroup": {
                        "id": "1",
                        "contact_id": "6",
                        "contactgroup_id": "1"
                    }
                }
            ]
        }
    ]
}
  • Keine Stichwörter