| Operation | Method | URL | Response | Example | code-block |
---|
| Create | POST | http://host/en/omk/admin/api/v2/locations.json | new Location in NMIS configurations. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations.json |
Code Block |
---|
{
"Address1": "",
"Address2": "",
"City": "",
"Country": "",
"Floor": "",
"Geocode": "fake geo code",
"Latitude": "xx.xxxxxxx",
"Location": "Mandatory param",
"Longitude": "xx.xxxxxxx",
"Postcode": "",
"Room": "",
"State": "",
"Suburb": ""
} |
|
---|
Locations | GET | GET | http://host/en/omk/admin/api/v2/locations.json | Locations present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations.json | |
Locations | GET | GET | http://host/en/omk/admin/api/v2/locations{location-name}.json | Locations present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations/Amsterdam.json |
Code Block |
---|
{
"Address1": "",
"Address2": "",
"City": "Amsterdam",
"Country": "Netherlands",
"Floor": "",
"Geocode": "Amsterdam, Netherlands",
"Latitude": "52.3675734",
"Location": "Amsterdam",
"Longitude": "4.9041389",
"Postcode": "",
"Room": "",
"State": "",
"Suburb": "",
"_id": "Amsterdam"
} |
|
Locations | Update | PUT | http://host/en/omk/admin/api/v2/locations/{location-name}.json | Update location entry | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations/Mandatory param.json |
Code Block |
---|
| {
"Address1": "",
"Address2": "",
"City": "",
"Country": "",
"Floor": "",
"Geocode": "fake geo code",
"Latitude": "xx.xxxxxxx",
"Location": "Mandatory param",
"Longitude": "yy.yyyyyyy",
"Postcode": "",
"Room": "",
"State": "",
"Suburb": ""
} |
|
Locations | Delete | DELETE | http://host/en/omk/admin/api/v2/locations/{location-name}.json | Deletes the location entry from configurations | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations/Mandatory param.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
|
| Create | POST | http://host/en/omk/admin/api/v2/services.json | new services in NMIS configurations. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services.json |
Code Block |
---|
{
"Description": "Dummy Entry for API",
"Name": "dummy",
"Poll_Interval": "5m",
"Port": "",
"Service_Name": "dummy.exe",
"Service_Type" : "new_type"
} |
|
Services | GET | GET | http://host/en/omk/admin/api/v2/services.json | Services present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services.json |
|
Services | GET | GET | http://host/en/omk/admin/api/v2/services/{service-name}.json | Services present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dummy.json |
Code Block |
---|
{
"Description": "Dummy Entry for API",
"Name": "dummy",
"Poll_Interval": "5m",
"Port": "",
"Service_Name": "dummy.exe",
"Service_Type": "new_type",
"_id": "dummy"
} |
|
Services | Update | PUT | http://host/en/omk/admin/api/v2/services/{service-name}.json | Update Services entry | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dumy.json |
Code Block |
---|
| {
"Description": "Dummy Entry for API",
"Name": "dummy_updated",
"Poll_Interval": "10m",
"Port": "",
"Service_Name": "dummy.exe",
"Service_Type" : "new_type"
} |
|
Services | Delete | DELETE | http://host/en/omk/admin/api/v2/services/{service-name}.json | Deletes the Service entry from configurations | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dummy_updated.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
|
---|
| Create | POST | http://host/en/omk/admin/api/v2/contacts.json | Create a new contact | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts.json |
Code Block |
---|
{
"Contact": "Test-Contact",
"DutyTime": "",
"Email": "",
"Level": "",
"Location": "",
"Mobile": "",
"Pager": "",
"Phone": "",
"TimeZone": ""
} |
|
Contacts | GET | GET | http://host/en/omk/admin/api/v2/contacts.json | get contact information present in configuration | http://host/en/omk/admin/api/v2/contacts.json |
|
Contacts | GET | GET | http://host/en/omk/admin/api/v2/contacts/{contact-name}.json | get specific contact information using API | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json |
Code Block |
---|
{
"Contact": "Test-Contact",
"DutyTime": "",
"Email": "",
"Level": "",
"Location": "",
"Mobile": "",
"RoomPager": "",
"StatePhone": "",
"SuburbTimeZone": "",
"_id": "AmsterdamTest-Contact"
} |
|
LocationsContacts | Update | PUT | http://host/en/omk/admin/api/v2/ | locationscontacts/{ | locationcontact-name}.json | Update | location entrythe contact data present in configuration file | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/ | locations/Mandatory paramcontacts/Test-Contact.json | |
|
| | "Address1": | "", | | Address2Contact": "Test-Contact",
|
| | City | | CountryEmail": "test@gmail.com",
|
| | "Floor": | "", | | Geocode | fake geo code | | "Latitude": | "xx.xxxxxxx", | | Mandatory param | | Longitude | yy.yyyyyyy | | Postcode | | "Room": | "", | | State | | Suburb |
| Locations | Contacts | Delete | DELETE | http://host/en/omk/admin/api/v2/ | locationscontacts/{ | locationcontact-name}.json | Deletes the location entry from configurationsdelete the contact data. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/ | locations/Mandatory paramcontacts/Test-Contact.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
Anchor |
---|
| servicesescalationsservices |
---|
| escalations |
---|
|
|
| Create | POST | http://host/en/omk/admin/api/v2/servicesescalations.json | new services in NMIS configurations. |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/servicesescalations.json |
Code Block |
---|
{
"DescriptionEvent": null,
"Dummy Entry for API "Event_Element": "",
"NameEvent_Node": "dummy",
"Poll_IntervalGroup": "5m",
"PortLevel0": "",
"Service_NameLevel1": "dummy.exe",
"Service_TypeLevel10" : "new_type"
} |
| Services | GET | GET | http://host/en/omk/admin/api/v2/services.json | Services present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services.json | Services | GET | GET | http://host/en/omk/admin/api/v2/services/{service-name}.json | Services present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dummy.json | Code Block |
---|
{",
"Level2": "",
"Level3": "",
"Level4": "",
"DescriptionLevel5": "Dummy",
Entry for API"Level6": "",
"NameLevel7": "dummy",
"Poll_IntervalLevel8": "5m",
"PortLevel9": "",
"Service_Name": "dummy.exetest",
"Service_TypeRole": null,
"new_type" "Type": null,
"_id"UpNotify": "dummy"
} |
| Services | Update | PUT |
Escalations | GET | GET | http://host/en/omk/admin/api/v2/escalations.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations.json |
|
| GET | GET | http://host/en/omk/admin/api/v2/servicesescalations/{serviceescalation-nameevent}.json | Update Services entry |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/servicesescalations/dumytest.json |
Code Block |
---|
theme | FadeToGrey |
---|
{
"DescriptionEvent": "Dummy Entry for API"null,
"NameEvent_Element": "dummy_updated",
"PollEvent_IntervalNode": "10m",
"PortGroup": "",
"Service_NameLevel0": "dummy.exe",
"Service_TypeLevel1" : "new_type"
} |
| Services | Delete | DELETE | http://host/en/omk/admin/api/v2/services/{service-name}.json | Deletes the Service entry from configurations | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dummy_updated.json | Code Block |
---|
{",
"Level10": "",
"Level2": "",
"Level3": "",
"redirect_toLevel4": null"",
"successLevel5": 1
} |
| Anchor |
---|
contacts | contacts | | Create | POST | http://host/en/omk/admin/api/v2/contacts.json | Create a new contact | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts.json | Code Block |
---|
{"",
"ContactLevel6": "Test-Contact",
"DutyTimeLevel7": "",
"EmailLevel8": "",
"LevelLevel9": "",
"LocationName": "test",
"MobileRole": ""null,
"PagerType": ""null,
"PhoneUpNotify": ""null,
"TimeZone_id": ""
} |
| Contacts | GET | GET | http://host/en/omk/admin/api/v2/contacts.json | get contact information present in configuration | http://host/en/omk/admin/api/v2/contacts.json | Contacts | GET | GET |
Escalations | Update | PUT | http://host/en/omk/admin/api/v2/contactsescalations/{contactescalation-nameevent}.jsonget specific contact information using API |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contactsescalations/Test-Contacttest.json |
Code Block |
---|
{
"ContactEvent": "Test-Contacttest",
"DutyTimeEvent_Element": "",
"EmailEvent_Node": "",
"LevelGroup": "",
"LocationLevel0": "",
"MobileLevel1": "",
"PagerLevel10": "",
"Phone": "",
"TimeZone": "",
"_id": "Test-Contact"
} |
| Contacts | Update | PUT | http://host/en/omk/admin/api/v2/contacts/{contact-name}.json | Update the contact data present in configuration file | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json | Code Block |
---|
{Level2": "",
"ContactLevel3": "Test-Contact",
"DutyTimeLevel4": "1",
"EmailLevel5": "test@gmail.com",
"LevelLevel6": "",
"LocationLevel7": "",
"MobileLevel8": "",
"PagerLevel9": "",
"PhoneName": "test",
"Role": null,
"TimeZoneType": null,
"UpNotify": null
} |
|
ContactsEscalations | Delete | DELETE | http://host/en/omk/admin/api/v2/contactsescalations/{contactescalation-nameevent}.jsondelete the contact data. |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contactsescalations/Test-Contacttest.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
Anchor |
---|
| escalationseventsescalations |
---|
| events |
---|
|
|
| Create | POST | http://host/en/omk/admin/api/v2/escalationsevents.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalationsevents.json |
Code Block |
---|
{
"EventCancelingEvent": null"N/A",
"Event_ElementDescription": "",test "Event_Node": ""event API",
"GroupEvent": "Self-test-API",
"Level0Log": "true",
"Level1Notify": "true",
"Level10Stateful": "false",
"Level2Status": "false",
"Level3": "",
"Level4": "",
"Level5": "",
"Level6": "",
"Level7": "",
"Level8": "",
"Level9": "",
"Name": "test",
"Role": null,
"Type": null,
"UpNotify": null
} |
| Escalations | GET | GET |
Events | GET | GET | http://host/en/omk/admin/api/v2/events.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events.json |
|
Events | GET | GET | http://host/en/omk/admin/api/v2/events/{event-name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events/Self-test-API.json |
Code Block |
---|
{
"CancelingEvent": "N/A",
"Description": "test event API",
"Event": "Self-test-API",
"Log": "true",
"Notify": "true",
"Stateful": "false",
"Status": "false",
"_id": "Self-test-API"
} |
|
Events | Update | PUT | http://host/en/omk/admin/api/v2/escalationsevents/{event-name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/events/Self-test-API.json |
|
GETEvents | GET | http://host/en/omk/admin/api/v2/escalations/{escalation-event}.json | http://apollo.opmantek.net:8080Delete | DELETE | http://host/en/omk/admin/api/v2/escalations/test.json Code Block | {
"Event": null,
"Event_Element": "",
"Event_Node": "",
"Group": "",
"Level0": "",
"Level1": "",
"Level10": "",
"Level2": ""/v2/events/{event-name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events/Self-test-API.json |
Code Block |
---|
{
"redirect_to": null,
"Level3success": "",
"Level4": "", 1
} |
|
Anchor |
---|
| polling-policy |
---|
| polling-policy |
---|
|
|
Polling-Policy | Create | POST | http://host/en/omk/admin/api/v2/polling-policy.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy.json |
Code Block |
---|
{
"Level5description": "poll very infr_very.equently",
"Level6name": "very_very_infrequently",
"Level7": "", "Level8ping": "30m",
"Level9": "", "Namesnmp": "test1h",
"Role": null,
"Typeupdate": null"2d",
"UpNotify": null, "_idwmi": "test1h"
} |
| Escalations | Update | PUT |
Polling-Policy | GET | GET | http://host/en/omk/admin/api/v2/polling-policy.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy.json |
|
Polling-Policy | GET | GET | http://host/en/omk/admin/api/v2/escalationspolling-policy/{escalation-eventpolicy name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/testpolling-policy/very_very_infrequently.json |
Code Block |
---|
{
"Event "_id": "test",
"Event_Element": "",
"Event_Node": "",
"Group": "",
"Level0": "",
"Level1": "",
"Level10": "",
"Level2": "",
"Level3": "",
"Level4": "",
"Level5": "",
"Level6": "",
"Level7": "",
"Level8": "",
"Level9": "",
"Name": "test",
"Role": null,
"Type": null,
"UpNotify": null
} |
Escalations "very_very_infrequently",
"description": "poll very infr_very.equently",
"name": "very_very_infrequently",
"ping": "30m",
"snmp": "1h",
"update": "2d",
"wmi": "1h"
} |
|
Polling-Policy | Update | PUT | http://host/en/omk/admin/api/v2/polling-policy/{policy name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy/very_very_infrequently.json |
Code Block |
---|
{
"description": "poll",
"name": "very_very_infrequently",
"ping": "30m",
"snmp": "1h",
"update": "2d",
"wmi": "1h"
} |
|
Polling-Policy | Delete | DELETE | http://host/en/omk/admin/api/v2/escalationspolling-policy/{escalation-eventpolicy name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/testpolling-policy/very_very_infrequently.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
|
EventsUsers | Create | POST | http://host/en/omk/admin/api/v2/eventsusers.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events.json Code Block |
---|
{
"CancelingEvent": "N/A",
"Description": "test event API",
"Event": "Self-test-API",
"Log": "true",
"Notify": "true",
"Stateful": "false",
"Status": "false"
} | Events/users.json |
Code Block |
---|
{
"admission": "true",
"groups": "all",
"privilege": "administrator",
"user": "test"
} |
|
Users | GET | GET | http://host/en/omk/admin/api/v2/eventsusers.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/eventsusers.json |
|
EventsUsers | GET | GET | http://host/en/omk/admin/api/v2/eventsusers/{event-user:name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/eventsusers/Self-test-API.json |
Code Block |
---|
{
"CancelingEvent_id": "N/A",
"Description": "test event API",
"Event": "Self-test-API",
"Logadmission": "true",
"Notify": "true",
"Statefulgroups": [
"falseall"
],
"Statusprivilege": "falseadministrator",
"_iduser": "Self-test-API"
} |
|
EventsUsers | Update | PUT | http://host/en/omk/admin/api/v2/eventsusers/{event-user:name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events/Self-test-API.jsonEvents/users/test.json |
Code Block |
---|
{
"admission": "false",
"groups": [
"all"
],
"privilege": "administrator",
"user": "test"
} |
|
Users | Delete | DELETE | http://host/en/omk/admin/api/v2/eventsusers/{event-user:name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/eventsusers/Self-test-API.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
Anchor |
---|
polling-policy | polling-policy |
| Polling-Policy |
Access | Create | POST |
|
| http://host/en/omk/admin/api/v2/polling-policy.jsonhttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policyaccess.json Code Block |
---|
{
"description": "poll very infr_very.equently",
"name": "very_very_infrequently",
"ping": "30m",
"snmp": "1h",
"update": "2d",
"wmi": "1h"
} |
| Polling-Policy | GET | GET | http://host/en/omk/admin/api/v2/polling-policy.json Code Block |
---|
{
"descr": "Enable button Logs",
"group": "button",
"level0": "1",
"level1": "0",
"level2": "0",
"level3": "0",
"level4": "0",
"level5": "0",
"name": "test_logs"
} |
|
Access | GET | GET |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policyaccess.json |
|
Polling-PolicyAccess | GET | GET |
|
| http://host/en/omk/admin/api/v2/polling-policy/{policy name}.jsonhttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policyaccess/verytest_very_infrequently.json Code Block | {
"_idlogs.json |
Code Block |
---|
{
"_id": "test_logs",
"descr": "Enable button Logs",
"group": "very_very_infrequentlybutton",
"descriptionlevel0": "poll very infr_very.equently1",
"namelevel1": "very_very_infrequently0",
"pinglevel2": "30m0",
"snmplevel3": "1h0",
"updatelevel4": "2d0",
"wmilevel5": "1h0"
} |
| Polling-Policy | Update | PUT | http://host/en/omk/admin/api/v2/polling-policy/{policy name}.json |
Access | Update | PUT |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy/very_very_infrequently.json Code Block | {
"descriptionaccess/test_logs.json |
Code Block |
---|
{
"_id": "test_logs",
"descr": "Enable button Logs",
"group": "button new",
"level0": "1",
"level1": "poll0",
"namelevel2": "very_very_infrequently0",
"pinglevel3": "30m0",
"snmplevel4": "1h0",
"updatelevel5": "2d0",
"wminame": "1htest_logs"
} |
|
Access | Polling-Policy | Delete | DELETE |
|
| http://host/en/omk/admin/api/v2/polling-policy/{policy name}.jsonhttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policyaccess/verytest_very_infrequentlylogs.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
| Anchor |
---|
users | users | Users | Create | POST | Users | GET | GET | Users | GET | GET | Users | Update | PUT | Users | Delete | DELETE | Anchor |
---|
access | access | Access | Create | POST | Access | GET | GET | Access | GET | GET | Access | Update | PUT | Access | Delete | DELETE |
|
Customers | Create | POST |
|
|
|
|
Customers | GET | GET |
|
|
|
|
Customers | GET | GET |
|
|
|
|
Customers | Update | PUT |
|
|
|
|
Customers | Delete | DELETE |
|
|
|
|
|
Business Services | Create | POST |
|
|
|
|
Business Services | GET | GET |
|
|
|
|
Business Services | GET | GET |
|
|
|
|
Business Services | Update | PUT |
|
|
|
|
Business Services | Delete | DELETE |
|
|
|
|