1. Hole eine Service Eskalation per ID
URL: https://123.123.123.123/serviceescalations/$ID.json
Methode: GET
Antwort: JSON
2. Hole alle existierenden service Eskalationen
URL: https://123.123.123.123/serviceescalations.json
Methode: GET
Antwort: JSON
Antwort auf erfolgreiche API Abfrage { "all_serviceescalations": [ { "Serviceescalation": { "id": "1", "uuid": "9c82bae6-2dbf-40d6-8bbf-b850b95a7714", "container_id": "1", "timeperiod_id": "1", "first_notification": "1", "last_notification": "15", "notification_interval": "60", "escalate_on_recovery": "1", "escalate_on_warning": "1", "escalate_on_unknown": "0", "escalate_on_critical": "1", "created": "2015-12-04 11:35:25", "modified": "2015-12-04 11:35:25" }, "Timeperiod": { "id": "1", "name": "24x7" }, "ServiceescalationServiceMembership": [ { "id": "1", "service_id": "1", "serviceescalation_id": "1", "excluded": "0", "Service": { "id": "1", "name": null, "host_id": "1", "servicetemplate_id": "1", "Host": { "id": "1", "name": "localhost" }, "Servicetemplate": { "name": "Ping" } } }, { "id": "2", "service_id": "2", "serviceescalation_id": "1", "excluded": "0", "Service": { "id": "2", "name": null, "host_id": "1", "servicetemplate_id": "8", "Host": { "id": "1", "name": "localhost" }, "Servicetemplate": { "name": "CHECK_LOCAL_DISK" } } }, { "id": "3", "service_id": "3", "serviceescalation_id": "1", "excluded": "0", "Service": { "id": "3", "name": null, "host_id": "1", "servicetemplate_id": "9", "Host": { "id": "1", "name": "localhost" }, "Servicetemplate": { "name": "CHECK_LOCAL_LOAD" } } }, { "id": "4", "service_id": "4", "serviceescalation_id": "1", "excluded": "0", "Service": { "id": "4", "name": null, "host_id": "1", "servicetemplate_id": "13", "Host": { "id": "1", "name": "localhost" }, "Servicetemplate": { "name": "CHECK_LOCAL_USERS" } } }, { "id": "5", "service_id": "83", "serviceescalation_id": "1", "excluded": "0", "Service": { "id": "83", "name": null, "host_id": "1", "servicetemplate_id": "78", "Host": { "id": "1", "name": "localhost" }, "Servicetemplate": { "name": "check_user" } } }, { "id": "6", "service_id": "85", "serviceescalation_id": "1", "excluded": "0", "Service": { "id": "85", "name": null, "host_id": "1", "servicetemplate_id": "79", "Host": { "id": "1", "name": "localhost" }, "Servicetemplate": { "name": "check_interval" } } } ], "ServiceescalationServicegroupMembership": [ ], "Contactgroup": [ ], "Contact": [ { "name": "openitcockpitSupport", "ContactsToServiceescalation": { "id": "1", "contact_id": "6", "serviceescalation_id": "1" } } ] } ] } |