| 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/ | locationsdummy.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 |
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/locations{locationservice-name}.jsonLocations present in NMIS configuration file. | Deletes the Service entry from configurations | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locationsservices/Amsterdamdummy_updated.json Code Block | {
"Address1": "",
"Address2": "", |
Code Block |
---|
{
"Cityredirect_to": "Amsterdam"null,
"Countrysuccess": "Netherlands",
"Floor": "", 1
} |
|
|
|
|
|
|
|
|
---|
| Create | POST | http://host/en/omk/admin/api/v2/contacts.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts.json |
Code Block |
---|
{
"GeocodeContact": "Amsterdam, NetherlandsTest-Contact",
"LatitudeDutyTime": "52.3675734",
"LocationEmail": "Amsterdam",
"LongitudeLevel": "4.9041389",
"PostcodeLocation": "",
"RoomMobile": "",
"StatePager": "",
"SuburbPhone": "",
"_idTimeZone": "Amsterdam"
} |
| Locations | Update | PUT |
Contacts | GET | GET | http://host/en/omk/admin/api/v2/contacts.json |
| http://host/en/omk/admin/api/v2/contacts.json |
|
Contacts | GET | GET | http://host/en/omk/admin/api/v2/ | locationscontacts/{ | locationcontact-name}.json | Update location entry |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/ | locations/Mandatory paramcontacts/Test-Contact.json | |
|
| | "Address1": "", | | "Address2": "",
"City": "",
| CountryContact": "Test-Contact",
|
| | Floor | | Geocode | fake | geo | code", | | Latitude | xx.xxxxxxx | | Mandatory param | | Longitude | yy.yyyyyyy | | Postcode | | Room | | State | | Suburb |
| LocationsContacts | DeleteUpdate | DELETEPUT | http://host/en/omk/admin/api/v2/ | locationscontacts/{ | locationcontact-name}.json | Deletes the location entry from configurations |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/ | locations/Mandatory paramcontacts/Test-Contact.json | | { |
---|
{
"Contact": "Test-Contact",
" |
| redirect_to | null | 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 |
---|
{ "test@gmail.com",
"Level": "",
"Location": "",
"Mobile": "",
"DescriptionPager": "Dummy Entry for API",
"NamePhone": "dummy",
"Poll_IntervalTimeZone": "5m",
"Port": "","
} |
|
Contacts | Delete | DELETE | http://host/en/omk/admin/api/v2/contacts/{contact-name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json |
Code Block |
---|
{
"Serviceredirect_Nameto": "dummy.exe"null,
"Service_Typesuccess" : "new_type"1
} |
| Services | GET | GET |
|
| Create | POST | http://host/en/omk/admin/api/v2/servicesescalations.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 | {/escalations.json |
Code Block |
---|
{
"Event": null,
"Event_Element": "",
"Event_Node": "",
"Group": "",
"DescriptionLevel0": ""Dummy,
Entry for API"Level1": "",
"NameLevel10": "dummy",
"Poll_IntervalLevel2": "5m",
"PortLevel3": "",
"Service_NameLevel4": "dummy.exe",
"Service_TypeLevel5": "new_type",
"_idLevel6": "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 |
---|
| {,
"Level7": "",
"Level8": "",
"DescriptionLevel9": "Dummy Entry for API",
"Name": "dummy_updatedtest",
"Poll_IntervalRole": "10m"null,
"PortType": ""null,
"Service_Name": "dummy.exe",
"Service_Type" : "new_type"
} |
| Services | 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/servicesescalations/{serviceescalation-nameevent}.json | Deletes the Service entry from configurations |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dummy_updated.json Code Block | {escalations/test.json |
Code Block |
---|
{
"Event": null,
"Event_Element": "",
"Event_Node": "",
"redirect_toGroup": null"",
"successLevel0": 1
} |
| Anchor |
---|
contacts | contacts | | Create | POST | http://host/en/omk/admin/api/v2/contacts/.json | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts.json | Code Block |
---|
{ "",
"Level1": "",
"Level10": "",
"Level2": "",
"Level3": "",
"ContactLevel4": "Test-Contact",
"DutyTimeLevel5": "",
"EmailLevel6": "",
"LevelLevel7": "",
"LocationLevel8": "",
"MobileLevel9": "",
"PagerName": "test",
"Phone": """Role": null,
"Type": null,
"UpNotify": null,
"TimeZone_id": "test"
} |
|
ContactsEscalations | GETUpdateGET | PUT | http://host/en/omk/admin/api/v2/contacts/.json | http://host/en/omk/admin/api/v2/contacts.json | Contacts | GET | GET | http://host/en/omk/admin/api/v2/contacts/{contact-nameescalations/{escalation-event}.json |
| 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": "",
"_idLevel2": "Test-Contact"
} |
| Contacts | Update | PUT | http://host/en/omk/admin/api/v2/contacts/{contact-name}.json | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json | Code Block |
---|
{",
"Level3": "",
"ContactLevel4": "Test-Contact",
"DutyTimeLevel5": "1",
"EmailLevel6": "test@gmail.com",
"LevelLevel7": "",
"LocationLevel8": "",
"MobileLevel9": "",
"PagerName": ""test",
"Role": null,
"PhoneType": ""null,
"TimeZoneUpNotify": ""null
} |
|
ContactsEscalations | Delete | DELETE | http://host/en/omk/admin/api/v2/contactsescalations/{contactescalation-nameevent}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contactsescalations/Test-Contacttest.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
| Anchor |
---|
escalations | escalations | | Create | POST | Escalations | GET | GET | GET | GET | Escalations | Update | PUT | Escalations | Delete | DELETE |
|
| 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 |
|
|
|
|
|
Users | Create | POST |
|
|
|
|
Users | GET | GET |
|
|
|
|
Users | GET | GET |
|
|
|
|
Users | CreateUpdate | POSTPUT |
|
|
|
|
UsersUsers | Delete | Users | UsersDELETE |
|
|
|
|
|
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 |
|
|
|
|