| Operation | Method | URL | Response | Example | code-block |
---|
| Create | POST | http://host/en/omk/admin/api/v2/locations | /{location-name}.json | Deletes the location entry from configurationsnew Location in NMIS configurations. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations | /Mandatory param.json | | "redirect_to | null"",
"Address2": "",
"City": "",
" |
| success | 1
} Anchor |
---|
services | services | | 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 "Floor": "",
"Geocode": " |
| Dummy | Entry | for API | | | Name | dummy | "Poll_Interval | 5mMandatory param",
"Longitude": "xx.xxxxxxx",
" |
| PortPostcode": "",
"Room": "",
" |
| Service_Name | dummy.exe | | | Service_Type | | new_type | Services |
---|
Locations | GET | GET | http://host/en/omk/admin/api/v2/ | serviceslocations.json | Services Locations present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/ | serviceslocations.json | |
ServicesLocations | GET | GET | http://host/en/omk/admin/api/v2/services/locations{servicelocation-name}.json | Services Locations present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/serviceslocations/dummyAmsterdam.json |
Code Block |
---|
{
"DescriptionAddress1": "Dummy Entry for API",
"Address2": "",
"City": "Amsterdam",
"NameCountry": "dummyNetherlands",
"Poll_IntervalFloor": "5m",
"PortGeocode": "Amsterdam, Netherlands",
"Service_NameLatitude": "dummy52.exe3675734",
"Service_TypeLocation": "new_typeAmsterdam",
"_idLongitude": "dummy4.9041389"
} |
| Services | ,
"Postcode": "",
"Room": "",
"State": "",
"Suburb": "",
"_id": "Amsterdam"
} |
|
Locations | Update | PUT | http://host/en/omk/admin/api/v2/ | serviceslocations/{ | servicelocation-name}.json | Update | Services location entry | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/ | serviceslocations/ | dumyMandatory param.json | | | 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
} |
Anchor |
---|
contacts | contacts | | Create | POST | 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/ | contactslocations/{location-name}.json | Deletes the location entry from configurations | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations/ | contactsMandatory param.json | | Contact | "Test-Contact" | DutyTime | "",
"Email": "", |
|
| 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 |
---|
{
"LevelDescription": "Dummy Entry for API",
"LocationName": "dummy",
"MobilePoll_Interval": "5m",
"PagerPort": "",
"PhoneService_Name": "dummy.exe",
"TimeZoneService_Type" : "new_type"
} |
|
ContactsServices | GET | GET | http://host/en/omk/admin/api/v2/contactsservices.json | Services present in NMIS configuration file. | http://hostapollo.opmantek.net:8080/en/omk/admin/api/v2/contactsservices.json |
|
ContactsServices | GET | GET | http://host/en/omk/admin/api/v2/contactsservices/{contactservice-name}.json | Services present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contactsservices/Test-Contactdummy.json |
Code Block |
---|
{
"ContactDescription": "Test-Contact",Dummy Entry "DutyTime": "for API",
"EmailName": "dummy",
"LevelPoll_Interval": "5m",
"LocationPort": "",
"MobileService_Name": "dummy.exe",
"PagerService_Type": "new_type",
"Phone": "",
"TimeZone": "",
"_id": "Test-Contactdummy"
} |
|
ContactsServices | Update | PUT | http://host/en/omk/admin/api/v2/contactsservices/{contactservice-name}.json | Update Services entry | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contactsservices/Test-Contactdumy.json |
Code Block |
---|
| {
"ContactDescription": "Test-Contact",Dummy Entry for "DutyTime": "1"API",
"EmailName": "test@gmail.comdummy_updated",
"LevelPoll_Interval": "10m",
"LocationPort": "",
"MobileService_Name": "dummy.exe",
"PagerService_Type" : "new_type",
"Phone": "",
"TimeZone": ""
} |
| Contacts | |
Services | Delete | DELETE | http://host/en/omk/admin/api/v2/contactsservices/{contactservice-name}.json | Deletes the Service entry from configurations | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contactservices/dummy_updated.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
| escalations | escalations |
---|
| Create | POST | http://host/en/omk/admin/api/v2/escalationscontacts.json | Create a new contact | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalationscontacts.json |
Code Block |
---|
{
"EventContact": null"Test-Contact",
"DutyTime"Event_Element": "",
"Event_NodeEmail": "",
"GroupLevel": "",
"Level0Location": "",
"Level1Mobile": "",
"Level10Pager": "",
"Level2Phone": "",
"Level3TimeZone": "",
"Level4": "",
"Level5": "",
"Level6": "",
"Level7": "",
"Level8": "
} |
|
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",
"Level9DutyTime": "",
"NameEmail": "test",
"RoleLevel": null"",
"TypeLocation": null"",
"UpNotifyMobile": "",
null
} |
| 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 "Pager": "",
"Phone": "",
"TimeZone": "",
"_id": "Test-Contact"
} |
|
Contacts | Update | PUT | http://host/en/omk/admin/api/v2/escalationscontacts/{escalationcontact-eventname}.json | Update the contact data present in configuration file | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalationscontacts/testTest-Contact.json |
Code Block |
---|
{
"EventContact": null,
"Event_Element": """Test-Contact",
"Event_NodeDutyTime": "1",
"GroupEmail": "test@gmail.com",
"Level0Level": "",
"Level1Location": "",
"Level10Mobile": "",
"Level2Pager": "",
"Level3Phone": "",
"Level4TimeZone": "",
"Level5": "",
} |
|
Contacts | Delete | DELETE | http://host/en/omk/admin/api/v2/contacts/{contact-name}.json | delete the contact data. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json |
Code Block |
---|
{
"Level6redirect_to": ""null,
"Level7success": "", 1
} |
|
|
| Create | POST | http://host/en/omk/admin/api/v2/escalations.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations.json |
Code Block |
---|
{
"Level8Event": ""null,
"Level9Event_Element": "",
"Event_Node": "",
"NameGroup": "test",
"RoleLevel0": null"",
"TypeLevel1": null"",
"UpNotifyLevel10": null"",
"_idLevel2": "test"
} |
| Escalations | Update | PUT | http://host/en/omk/admin/api/v2/escalations/{escalation-event}.json | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/test.json | Code Block |
---|
{,
"Level3": "",
"EventLevel4": "test",
"Event_ElementLevel5": "",
"Event_NodeLevel6": "",
"GroupLevel7": "",
"Level0Level8": "",
"Level1Level9": "",
"Level10Name": "test",
"Level2Role": ""null,
"Level3Type": ""null,
"Level4UpNotify": "",
"Level5": "",
"Level6": "",
"Level7": "",
"Level8": "",
"Level9": "",
"Name": "test",
"Role": null,
"Type": null,
"UpNotify": null
} |
| Escalations | Delete | DELETE |
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/escalations/{escalation-event}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/test.json |
Code Block |
---|
{
"Event": null,
"Event_Element": "",
"Event_Node": "",
"Group": "",
"Level0": "",
"Level1": "",
"Level10": "",
"Level2": "",
"Level3": "",
"Level4": "",
"Level5": "",
"Level6": "",
"Level7": "",
"Level8": "",
"Level9": "",
"Name": "test",
"Role": null,
"Type": null,
"UpNotify": null,
"_id": "test"
} |
|
Escalations | Update | PUT | http://host/en/omk/admin/api/v2/escalations/{escalation-event}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/test.json |
Code Block |
---|
{
"Event": "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 | Delete | DELETE | http://host/en/omk/admin/api/v2/escalations/{escalation-event}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/test.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
|
| Create | POST | http://host/en/omk/admin/api/v2/events.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events.json | { "CancelingEvent": "N/A", "Description": "test event API", "Event": "Self-test-API", "Log": "true", "Notify": "true", "Stateful": "false", "Status": "false" } |
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 | { "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/events/{event-name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events/Self-test-API.json |
|
Events | Delete | DELETE | 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 |
---|
{
"redirect_to": null,
"success": 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 |
|
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/polling-policy/{policy name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy/very_very_infrequently.json |
Code Block |
---|
{
"_id": "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/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 |
---|
{
"description": "poll",
"name": "very_very_infrequently",
"ping": "30m",
"redirect_to": null,
"success": 1
} |
| Anchor |
---|
events | events | | Create | POST | Events | GET | GET | Events | GET | GET | Events | Update | PUT | Events | Delete | DELETE | Anchor |
---|
polling-policy | polling-policy | Polling-Policy | Create | POST | Polling-Policy | GET | GET | Polling-Policy | GET | GET | Polling-Policy | Update | PUT | Polling-Policy | Delete | DELETE "snmp": "1h",
"update": "2d",
"wmi": "1h"
} |
|
Polling-Policy | Delete | DELETE | 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 |
---|
{
"redirect_to": null,
"success": 1
} |
|
|
Users | Create | POST |
|
|
|
|
Users | GET | GET |
|
|
|
|
Users | GET | GET |
|
|
|
|
Users | Update | PUT |
|
|
|
|
Users | Delete | DELETE |
|
|
|
|
|
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 |
|
|
|
|