Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
    "redirect_to": null,
    "success": 1
}

...

Services

...

Create

...

Code Block
{
    "Description": "Dummy Entry for API",
    "Name": "dummy",
    "Poll_Interval": "5m",
    "Port": "",
    "Service_Name": "dummy.exe",
    "Service_Type" : "new_type"
}

...


...

 code-block

...

Locations

...

new Location in NMIS configurations.

...

Code Block
{
        "Address1": "",
        "Address2": "",
        "City": "",
        "Country": "",
        "Floor": "",
        "Geocode": "fake geo code",
        "Latitude": "xx.xxxxxxx",
        "Location": "Mandatory param",
        "Longitude": "xx.xxxxxxx",
        "Postcode": "",
        "Room": "",
        "State": "",
        "Suburb": ""
    }

...

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"
}

...

Code Block
themeFadeToGrey
 {
        "Address1": "",
        "Address2": "",
        "City": "",
        "Country": "",
        "Floor": "",
        "Geocode": "fake geo code",
        "Latitude": "xx.xxxxxxx",
        "Location": "Mandatory param",
        "Longitude": "yy.yyyyyyy",
        "Postcode": "",
        "Room": "",
        "State": "",
        "Suburb": ""
    }



servicesServices present configuration fileservices

Anchor
locations
locations
Name

OperationMethodURLResponseExample

Locations

CreatePOSThttp://host/en/omk/admin/api/v2/locations.json

new Location in NMIS

configurations.

ServicesGETGEThttp://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"
}
ServicesUpdatePUT
Code Block
{
        "Address1": "",
        "Address2": "",
        "City": "",
        "Country": "",
        "Floor": "",
        "Geocode": "fake geo code",
        "Latitude": "xx.xxxxxxx",
        "Location": "Mandatory param",
        "Longitude": "xx.xxxxxxx",
        "Postcode": "",
        "Room": "",
        "State": "",
        "Suburb": ""
    }


LocationsGETGEThttp://host/en/omk/admin/api/v2/services/{service-name}locations.jsonUpdate Services entryLocations present in NMIS configuration file.http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dumylocations.jsoncodeLocationsthemeGETFadeToGrey{ "Description": "Dummy Entry for APIGEThttp://host/en/omk/admin/api/v2/locations{location-name}.jsonLocations present in NMIS configuration file.

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations/Amsterdam.json

Code Block
{
    "Address1": "",
    "NameAddress2": "dummy_updated",
    "Poll_IntervalCity": "10mAmsterdam",
    "PortCountry": "Netherlands",
    "Service_NameFloor": "dummy.exe",
    "Service_TypeGeocode" : "new_type"
}
ServicesDeleteDELETEhttp://host/en/omk/admin/api/v2/services/{service-name}.jsonDeletes the Service entry from configurationshttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dummy_updated.json
Code Block
{Amsterdam, Netherlands",
    "Latitude": "52.3675734",
    "redirect_toLocation": null"Amsterdam",
    "successLongitude": 1
}
Anchorcontactscontacts

Contacts

Create

POSThttp://host/en/omk/admin/api/v2/contacts.jsonhttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts.json
Code Block
{"4.9041389",
    "ContactPostcode": "Test-Contact",
    "DutyTimeRoom": "",
    "EmailState": "",
    "LevelSuburb": "",
    "Location_id": "",
    "Mobile": "",
    "Pager": "",
    "Phone": "",
    "TimeZone": ""
}
ContactsGETGET
Amsterdam"
}


LocationsUpdatePUThttp://host/en/omk/admin/api/v2/contacts.jsonhttp://host/en/omk/admin/api/v2/contacts.jsonContactsGETGEThttp://host/en/omk/admin/api/v2/contacts/{contactlocations/{location-name}.jsonUpdate location entrycontacts/Test-Contact

locations/Mandatory param.json

Code Block
themeFadeToGrey
 {
        "Address1": "",
        "
Contact
Address2": "
Test-Contact
",
        
"
DutyTime
City": "",
        "Country": "",
        "
Email
Floor": "",
        "Geocode": "fake geo code",
        "
Level
Latitude": "xx.xxxxxxx",
        
"Location": "Mandatory param",
        
"
Mobile
Longitude": "yy.yyyyyyy",
        "
Pager
Postcode": "",
        "
Phone
Room": "",
        
"
TimeZone
State": "",
        
"
_id
Suburb": "
Test-Contact
"
    }
Contacts


LocationsUpdateDeletePUTDELETEhttp://host/en/omk/admin/api/v2/contactslocations/{contactlocation-name}.jsonDeletes the location entry from configurationscontacts/Test-ContactContact
redirect_to": 
"Test-Contact"
null,
    "
DutyTime
success": 
"
1
", "Email": "test@gmail.com",

}


Anchor
services
services

Services

Create

POSThttp://host/en/omk/admin/api/v2/services.jsonnew 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"
}


ContactsServicesDeleteGETDELETEGEThttp://host/en/omk/admin/api/v2/contacts/{contact-name}services.json

Services present in NMIS configuration file.

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contactservices.json
Code Block
{
    "redirect_to": null,
    "success": 1
}
Anchorescalationsescalations

Escalations

Create

POSTServicesGETGEThttp://host/en/omk/admin/api/v2/escalations/services/{service-name}.jsonhttp://

Services present in NMIS configuration file.

escalations

services/dummy.json

Code Block
{
    "Event": null,
    "Event_ElementDescription": "",Dummy Entry for   "Event_Node": ""API",
    "GroupName": "dummy",
    "Level0Poll_Interval": "5m",
    "Level1Port": "",
    "Level10Service_Name": "dummy.exe",
    "Level2Service_Type": "new_type",
    "Level3_id": "dummy",
    "Level4": "",
}


ServicesUpdatePUThttp://host/en/omk/admin/api/v2/services/{service-name}.jsonUpdate Services entry

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dumy.json

Code Block
themeFadeToGrey
{
     "Level5Description": "",Dummy Entry    "Level6": ""for API",
    "Level7Name": "dummy_updated",
    "Level8Poll_Interval": "10m",
    "Level9Port": "",
    "Service_Name": "testdummy.exe",
    "RoleService_Type": null,
    "Type": null,
    "UpNotifynew_type":
null
}


EscalationsServicesGETDeleteGETDELETEhttp://host/en/omk/admin/api/v2/escalationsservices/{service-name}.jsonhttp:Deletes the Service entry from configurationsescalationsGETGET
Code Block
{
    "redirect_to": null,
    "success": 1
}


Anchor
contacts
contacts

Contacts

Create

POSThttp://host/en/omk/admin/api/v2/escalations/{escalation-event}contacts.jsonCreate a new contactescalations/test

contacts.json

Code Block
{
    "EventContact": null,
    "Event_Element": """Test-Contact",
    "Event_NodeDutyTime": "",
    "GroupEmail": "",
    "Level0Level": "",
    "Level1Location": "",
    "Level10Mobile": "",
    "Level2Pager": "",
    "Level3Phone": "",
    "Level4TimeZone": "",
    "Level5": "",
    "Level6": "",
    "Level7": "",
    "Level8": "",
    "Level9": "",
}


ContactsGETGEThttp://host/en/omk/admin/api/v2/contacts.jsonget contact information present in configurationhttp://host/en/omk/admin/api/v2/contacts.jsonContactsGETGEThttp://host/en/omk/admin/api/v2/contacts/{contact-name}.jsonget specific contact information using API

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json

Code Block
{
    "NameContact": "testTest-Contact",
    "RoleDutyTime": null"",
    "TypeEmail": null"",
    "UpNotifyLevel": null"",
    "Location": "",
    "Mobile": "",
    "Pager": "",
    "Phone": "",
    "TimeZone": "",
    "_id": "testTest-Contact"
}


EscalationsContactsUpdatePUThttp://host/en/omk/admin/api/v2/escalationscontacts/{escalationcontact-eventname}.jsonhttpUpdate the contact data present in configuration fileescalationstest

Test-Contact.json

Code Block
{
    "EventContact": "testTest-Contact",
    "Event_ElementDutyTime": "1",
    "Event_NodeEmail": "test@gmail.com",
    "GroupLevel": "",
    "Level0Location": "",
    "Level1Mobile": "",
    "Level10Pager": "",
    "Level2Phone": "",
    "Level3TimeZone": "",
    "Level4": "",
    "Level5": "",
    "Level6": ""
}


ContactsDeleteDELETEhttp://host/en/omk/admin/api/v2/contacts/{contact-name}.jsondelete the contact data.

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/Test-Contact.json

Code Block
{
    "redirect_to": null,
    "Level7success": "",
    "Level8": ""1
}


Anchor
escalations
escalations

Escalations

Create

POSThttp://host/en/omk/admin/api/v2/escalations.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations.json

Code Block
{
    "Event": null,
    "Level9Event_Element": "",
    "NameEvent_Node": "test",
    "RoleGroup": null"",
    "TypeLevel0": null"",
    "UpNotifyLevel1": null
}
EscalationsDeleteDELETEhttp://host/en/omk/admin/api/v2/escalations/{escalation-event}.jsonhttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations/test.json
Code Block
{
    "redirect_to": null"",
    "Level10": "",
    "Level2": "",
    "Level3": "",
    "Level4": "",
    "successLevel5": "",
1
}
Anchoreventsevents

Events

Create

POSTEventsGETGETEventsGETGETEventsUpdatePUTEventsDeleteDELETE Anchorpolling-policypolling-policyPolling-PolicyCreatePOSTPolling-PolicyGETGETPolling-PolicyGETGETPolling-PolicyUpdatePUTPolling-PolicyDeleteDELETE AnchorusersusersUsersCreatePOSTUsersGETGETUsersGETGETUsersUpdatePUTUsersDeleteDELETE AnchoraccessaccessAccessCreatePOSTAccessGETGETAccessGETGETAccessUpdatePUTAccessDeleteDELETE AnchorcustomerscustomersCustomersCreatePOSTCustomersGETGETCustomersGETGETCustomersUpdatePUTCustomersDeleteDELETE AnchorbusinessbusinessBusiness ServicesCreatePOSTBusiness ServicesGETGETBusiness ServicesGETGETBusiness ServicesUpdatePUTBusiness ServicesDeleteDELETE
    "Level6": "",
    "Level7": "",
    "Level8": "",
    "Level9": "",
    "Name": "test",
    "Role": null,
    "Type": null,
    "UpNotify": null
}


EscalationsGETGEThttp://host/en/omk/admin/api/v2/escalations.json
http://apollo.opmantek.net:8080/en/omk/admin/api/v2/escalations.json
GETGEThttp://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"
}


EscalationsUpdatePUThttp://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
}


EscalationsDeleteDELETEhttp://host/en/omk/admin/api/v2/escalations/{escalation-event}.json

Anchor
events
events

Events

Create

POSThttp://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"
    }


EventsGETGEThttp://host/en/omk/admin/api/v2/events.json
http://apollo.opmantek.net:8080/en/omk/admin/api/v2/events.jsonEventsGETGEThttp://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"
}


EventsUpdatePUThttp://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
{
        "Description": "test event API",
        "Event": "test",
        "Log": "true-change",
        "Notify": "true",
        "Stateful": "false",
        "Status": "false"
    }


EventsDeleteDELETEhttp://host/en/omk/admin/api/v2/events/{event-name}.json

Anchor
polling-policy
polling-policy

Polling-PolicyCreatePOSThttp://host/en/omk/admin/api/v2/polling-policy.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy.json

Code Block
  {
        "description": "poll very infr_very.equently",
        "name": "very_very_infrequently",
        "ping": "30m",
        "snmp": "1h",
        "update": "2d",
        "wmi": "1h"
    }


Polling-PolicyGETGEThttp://host/en/omk/admin/api/v2/polling-policy.json
http://apollo.opmantek.net:8080/en/omk/admin/api/v2/polling-policy.jsonPolling-PolicyGETGEThttp://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-PolicyUpdatePUThttp://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-PolicyDeleteDELETEhttp://host/en/omk/admin/api/v2/polling-policy/{policy name}.json

Anchor
users
users

UsersCreatePOSThttp://host/en/omk/admin/api/v2/users.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users.json

Code Block
{
    "admission": "true",
    "groups": "all",
    "privilege": "administrator",
    "user": "johnsmith"
}


UsersGETGEThttp://host/en/omk/admin/api/v2/users.json
http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users.jsonUsersGETGEThttp://host/en/omk/admin/api/v2/users/{user:name}.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users/johnsmith.json

Code Block
{
    "_id": "johnsmith",
    "admission": "true",
    "groups": [
        "all"
    ],
    "privilege": "administrator",
    "user": "johnsmith"
}


UsersUpdatePUThttp://host/en/omk/admin/api/v2/users/{user:name}.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users/johnsmith.json

Code Block
{
    "admission": "false",
    "groups": [
        "all"
    ],
    "privilege": "administrator",
    "user": "johnsmith"
}


UsersDeleteDELETEhttp://host/en/omk/admin/api/v2/users/{user:name}.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/users/johnsmith.json

Code Block
{
    "redirect_to": null,
    "success": 1
}


Anchor
access
access

AccessCreatePOSThttp://host/en/omk/admin/api/v2/access.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/access.json

Code Block
{
    "descr": "Enable button Logs",
    "group": "button",
    "level0": "1",
    "level1": "0",
    "level2": "0",
    "level3": "0",
    "level4": "0",
    "level5": "0",
    "name": "test_logs"
}


AccessGETGEThttp://host/en/omk/admin/api/v2/access.json
http://apollo.opmantek.net:8080/en/omk/admin/api/v2/access.jsonAccessGETGEThttp://host/en/omk/admin/api/v2/access/{access-id}.json

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",
    "level1": "0",
    "level2": "0",
    "level3": "0",
    "level4": "0",
    "level5": "0",
    "name": "test_logs"
}


AccessUpdatePUThttp://host/en/omk/admin/api/v2/access/{access-id}.json

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 new",
    "level0": "1",
    "level1": "0",
    "level2": "0",
    "level3": "0",
    "level4": "0",
    "level5": "0",
    "name": "test_logs"
}


AccessDeleteDELETEhttp://host/en/omk/admin/api/v2/access/{access-id}.json

Anchor
customers
customers

CustomersCreatePOSThttp://host/en/omk/admin/api/v2/customers.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/customers.json

Code Block
  {
        "customer": "test",
        "description": "",
        "groups": "",
        "locations": null
    }


CustomersGETGEThttp://host/en/omk/admin/api/v2/customers.json
http://apollo.opmantek.net:8080/en/omk/admin/api/v2/customers.jsonCustomersGETGEThttp://host/en/omk/admin/api/v2/customers/{customer-name}.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/customers/test.json

Code Block
{
    "_id": "test",
    "customer": "test",
    "description": "",
    "groups": "",
    "locations": null
}


CustomersUpdatePUThttp://host/en/omk/admin/api/v2/customers/{customer-name}.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/customers/test.json

Code Block
  {
        "customer": "test",
        "description": "this is test",
        "groups": "",
        "locations": null
    }


CustomersDeleteDELETEhttp://host/en/omk/admin/api/v2/customers/{customer-name}.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/customers/test.json

Code Block
{
    "redirect_to": null,
    "success": 1
}


Anchor
business
business

Business ServicesCreatePOSThttp://host/en/omk/admin/api/v2/businessservices.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/businessservices.json

Code Block
{
        "businessPriority": "10",
        "businessService": "test",
        "businessUnit": "Sales",
        "serviceType": "Revenue Generating"
    }


Business ServicesGETGEThttp://host/en/omk/admin/api/v2/businessservices.json
http://apollo.opmantek.net:8080/en/omk/admin/api/v2/businessservices.jsonBusiness ServicesGETGEThttp://host/en/omk/admin/api/v2/businessservices/{businessservices-id}.json

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/businessservices/test.json

Code Block
{
    "_id": "test",
    "businessPriority": "10",
    "businessService": "test",
    "businessUnit": "Sales",
    "serviceType": "Revenue Generating"
}


Business ServicesUpdatePUThttp://host/en/omk/admin/api/v2/businessservices/{businessservices-id}.json
Code Block
{
        "businessPriority": "11",
        "businessService": "test",
        "businessUnit": "Sales",
        "serviceType": "Revenue Generating"
    }


Business ServicesDeleteDELETEhttp://host/en/omk/admin/api/v2/businessservices/{businessservices-id}.json