| 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": "",
|
| | | | }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 |
Locations | Update | PUT | http://host/en/omk/admin/api/v2/locations/{location-name}.json | Locations present in NMIS configuration file.Update location entry | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations/ | AmsterdamMandatory param.json | | "Address1": "",
"Address2": "",
" |
| Address2City": "",
"Country": "",
" |
| City | Amsterdam",
"Geocode": "fake geo code",
" |
| Country | Netherlands | "Location": "Mandatory param",
" |
| FloorLongitude": "yy.yyyyyyy",
|
| | Geocode | Amsterdam, Netherlands | | Latitude | 52.3675734 | | Location | Amsterdam | | Longitude | 4.9041389 | , | "Postcode": "",
"Room": "",
"State": "" |
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,
" |
| Suburb | "",
"_id": "Amsterdam"
}Locations | Update | PUT |
|
| Create | POST | http://host/en/omk/admin/api/v2/ | locations/{location-name}services.json | Update location entrynew services in NMIS configurations. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/ | locations/Mandatory paramservices.json | |
|
|
"Address1": "",
"Address2": "",
"City": "",
"Country": "",
"Floor": "",
"Geocode | fake | geo | code | | Latitude | xx.xxxxxxx | | Location | Mandatory param | | Longitude | yy.yyyyyyy | | "Postcode": | "", | | RoomService_Name": "dummy.exe",
|
| | "State": | "", | | SuburbService_Type" : "new_type" |
|
| LocationsServices | DeleteGET | DELETEGET | http://host/en/omk/admin/api/v2/ | locations/{location-name}services.json | Deletes the location entry from configurationsServices present in NMIS configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/ | locations/Mandatory paramservices.json |
|
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
Anchor |
---|
services | services | | Create | POSTServices | GET | GET | http://host/en/omk/admin/api/v2/services/{service-name}.json | new services Services present in NMIS configurationsconfiguration 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 | GETUpdateGET | PUT | 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.Update Services entry | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dummydumy.json |
Code Block |
---|
| {
"Description": "Dummy Entry for API",
"Name": "dummy_updated",
"Poll_Interval": "5m10m",
"Port": "",
"Service_Name": "dummy.exe",,
"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 |
---|
{
"Serviceredirect_Typeto": "new_type"null,
"_idsuccess": "dummy"1
} |
| Services | Update | |
PUT |
| Create | POST | http://host/en/omk/admin/api/v2/services/{service-name}/contacts.json | Update Services entryCreate a new contact | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dumycontacts.json |
Code Block | theme |
---|
FadeToGrey | {
"DescriptionContact": "Test-Contact",
"DutyTime": "Dummy",
Entry for API"Email": "",
"NameLevel": "dummy_updated",
"Poll_IntervalLocation": "10m",
"PortMobile": "",
"Service_NamePager": "dummy.exe",
"Service_Type" Phone": "",
"TimeZone": "new_type"
} |
|
ServicesContacts | DeleteGET | DELETEGET | 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/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 | Create a new contactget 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": "",
"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"",
"_id": "Test-Contact"
} |
|
Contacts | Update | PUT | http://host/en/omk/admin/api/v2/contacts/{contact-name}.json | get specific contact information using APIUpdate the contact data present in configuration file | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json |
Code Block |
---|
{
"Contact": "Test-Contact",
"DutyTime": "1",
"Email": "test@gmail.com",
"Level": "",
"Location": "",
"Mobile": "",
"Pager": "",
"Phone": "",
"TimeZone": "",
"_id": "Test-Contact"
} |
|
Contacts | UpdateDelete | PUTDELETE | http://host/en/omk/admin/api/v2/contacts/{contact-name}.json | Update delete the contact data present in configuration file. | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json |
Code Block |
---|
{
"Contactredirect_to": "Test-Contact"null,
"DutyTime": "1",success": 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 |
---|
{
"EmailEvent": "test@gmail.com"null,
"LevelEvent_Element": "",
"LocationEvent_Node": "",
"MobileGroup": "",
"PagerLevel0": "",
"PhoneLevel1": "",
"TimeZone": ""
} |
| 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 |
---|
{"Level10": "",
"redirect_toLevel2": null"",
"successLevel3": 1
} |
| Anchor |
---|
escalations | escalations | | 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 |
---|
{"",
"Level4": "",
"Level5": "",
"Level6": "",
"EventLevel7": null"",
"Event_ElementLevel8": "",
"Event_NodeLevel9": "",
"GroupName": ""test",
"Role": null,
"Level0Type": ""null,
"Level1UpNotify": "",
"Level10": "",
"Level2": "",
"Level3": ""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 | 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,
"Level4": "",
"Level5Event_Element": "",
"Level6Event_Node": "",
"Level7Group": "",
"Level8Level0": "",
"Level9Level1": "",
"NameLevel10": "test",
"RoleLevel2": null"",
"TypeLevel3": null"",
"UpNotify": 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 | 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 |
---|
{"Level4": "",
"Level5": "",
"Level6": "",
"EventLevel7": null"",
"Event_ElementLevel8": "",
"Event_NodeLevel9": "",
"GroupName": "test",
"Level0Role": null,
"Type": null,
"UpNotify": null,
"Level1": "",
"Level10": "",
_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 |
---|
{
"Level2Event": "test",
"Level3Event_Element": "",
"Level4Event_Node": "",
"Level5Group": "",
"Level6Level0": "",
"Level7Level1": "",
"Level8Level10": "",
"Level9Level2": "",
"NameLevel3": "test",
"Role": null,
"TypeLevel4": null"",
"UpNotifyLevel5": null"",
"_idLevel6": "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 |
---|
{,
"EventLevel7": "test",
"Event_ElementLevel8": "",
"Event_NodeLevel9": "",
"GroupName": "test",
"Level0Role": ""null,
"Level1Type": ""null,
"Level10": "",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 |
---|
{
"Level2redirect_to": ""null,
"Level3success": "",
"Level4": "",
"Level5": "",
"Level6": "",
"Level7": "",
"Level8": "",
"Level9": "",
"Name": "test",
"Role": null,
"Type": null,
"UpNotify": null
} |
| Escalations | Delete | DELETE |
|
| Create | POST | http://host/en/omk/admin/api/v2/events.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 | GET | GET | http://host/en/omk/admin/api/v2/escalations/{escalation-event}events.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/testevents.jsoncode |
{
"redirect_to": null,
"success": 1
} |
Anchor |
---|
| events | events | | Create | POSTEvents | 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 "test event API",
"Event": "Self-test-API",
"Log": "true",
"Notify": "true",
"Stateful": "false",
"Status": "Status": "false"
} |
| Events | GET | GET"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/events/{event-name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events/Self-test-API.json | Events | GET | GET |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
Anchor |
---|
| polling-policy |
---|
| polling-policy |
---|
|
|
Polling-Policy | Create | POST | http://host/en/omk/admin/api/v2/events/{event-name}polling-policy.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 | PUTpolling-policy.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/events/{event-name}polling-policy.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events/Self-test-APIpolling-policy.json |
|
EventsPolling-Policy | DeleteGET | DELETEGET | http://host/en/omk/admin/api/v2/eventspolling-policy/{event-policy name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events/Self-test-APIpolling-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",
"redirect_toupdate": null "2d",
"success "wmi": "1h"
1
} |
|
Anchor |
---|
polling-policy | polling-policy | Polling-Policy | CreateUpdate | POSTPUT | 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 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 | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy.json |
Polling-Policy | GETDeleteGET | 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 |
---|
{
"_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 "redirect_to": null,
"success": 1
} |
|
|
Users | Create | POST | http://host/en/omk/admin/api/v2/polling-policy/{policy name}users.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy/very_very_infrequentlyusers.json | DELETE
Code Block | {
"description": "poll", Code Block |
---|
{
"nameadmission": "very_very_infrequentlytrue",
"pinggroups": "30mall",
"snmpprivilege": "1hadministrator",
"updateuser": "2dtest",
"wmi": "1h"
} | | Polling-Policy | Delete | |
Users | GET | GET | http://host/en/omk/admin/api/v2/users.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users.json |
|
Users | GET | GET | http://host/en/omk/admin/api/v2/polling-policyusers/{policy user:name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy/very_very_infrequentlyusers/test.json |
Code Block |
---|
{
"redirect_toid": null,
"success": 1
} |
| Anchor |
---|
users | users | Users | Create | POST "test",
"admission": "true",
"groups": [
"all"
],
"privilege": "administrator",
"user": "test"
} |
|
Users | Update | PUT | http://host/en/omk/admin/api/v2/users/{user:name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users/test.json |
Code Block |
---|
{
"admission": "truefalse",
"groups": [
"all"
],
"privilege": "administrator",
"user": "test"
} |
|
Users | GET | GET | http://host/en/omk/admin/api/v2/users.json | http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users.json | Users | GET | GETDelete | DELETE | http://host/en/omk/admin/api/v2/users/{user:name}.json |
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users/test.json |
Code Block |
---|
{
"redirect_idto": "test" null,
"admission": "true", "groups": [ "all" ], "privilegesuccess": "administrator",
"user": "test" 1
} |
Users |
| Update | PUT | http://host/en/omk/admin/api/v2/users/{user:name}.json |
Access | Create | POST |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users/testaccess.json |
Code Block |
---|
{
"admission"descr": "Enable button Logs",
"group": "button",
"level0": "1",
"level1": "false0",
"groupslevel2": [
"all"
]"0",
"level3": "0",
"level4": "0",
"privilegelevel5": "administrator0",
"username": "test_logs"
} |
|
UsersAccess | DeleteGET | DELETEGET |
|
| http://hostapollo.opmantek.net:8080/en/omk/admin/api/v2/users/{user:name}access.json |
|
Access | GET | GET |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/usersaccess/test_logs.json |
Code Block |
---|
{
"_id": "test_logs",
"descr": "Enable button Logs",
"group": "button",
"level0": "1",
"level1": "0",
"redirect_tolevel2": null,
"success": 1
} |
| Anchor |
---|
access | access | Access | Create | POST "0",
"level3": "0",
"level4": "0",
"level5": "0",
"name": "test_logs"
} |
|
Access | Update | PUT |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/access/test_logs.json |
Code Block |
---|
{
"_id": "test_logs",
"descr": "Enable button Logs",
"group": "buttonbutton new",
"level0": "1",
"level1": "0",
"level2": "0",
"level3": "0",
"level4": "0",
"level5": "0",
"name": "test_logs"
} |
|
Access | GETDeleteGET | DELETE |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/access/test_logs.json | Access | GET | GET Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
|
|
Customers | Create | POST |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/access/test_logs.json Code Block | {
"_id": "test_logs",
"descr": "Enable button Logs",
"group": "button",
"level0": "1",
"level1customers.json | Code Block |
---|
{
"customer": "0test",
"level2description": "0",
"level3groups": "0",
"level4locations": "0",
"level5": "0",
"name": "test_logs"
} |
| Access | Update | PUT |
Customers | GET | GET |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/customers.json |
|
Customers | GET | GET |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/accesscustomers/test_logs.json | Code Block |
---|
{
"_id": "test_logs",
"descrcustomer": "Enable button Logstest",
"groupdescription": "button new",
"level0groups": "1",
"level1locations": "0",
"level2": "0",
"level3 null
} |
|
Customers | Update | PUT |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/customers/test.json |
Code Block |
---|
{
"customer": "0test",
"level4description": "0this is test",
"level5groups": "0",
"namelocations": "test_logs"
null
} |
Access |
Customers | Delete | DELETE |
|
| http://apollo.opmantek.net:8080/en/omk/admin/api/v2/accesscustomers/test_logs.json |
Code Block |
---|
{
"redirect_to": null,
"success": 1
} |
| Anchor |
---|
customers | customers | 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 |
|
|
|
|