Skip to end of banner
Go to start of banner

All System Admin Configurations

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

API OPTIONSLocationsServicesContactsEscalationsEventsPolling-PolicyUsersAccessCustomersBusinessServices

Name

OperationMethodURLResponseExample

 code-block

Locations

CreatePOSThttp://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
{
        "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/locations.jsonLocations present in NMIS configuration file.http://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations.json
LocationsGETGEThttp://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
{
    "Address1": "",
    "Address2": "",
    "City": "Amsterdam",
    "Country": "Netherlands",
    "Floor": "",
    "Geocode": "Amsterdam, Netherlands",
    "Latitude": "52.3675734",
    "Location": "Amsterdam",
    "Longitude": "4.9041389",
    "Postcode": "",
    "Room": "",
    "State": "",
    "Suburb": "",
    "_id": "Amsterdam"
}
LocationsUpdatePUThttp://host/en/omk/admin/api/v2/locations/{location-name}.jsonUpdate location entryhttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations/Mandatory param.json
 {
        "Address1": "",
        "Address2": "",
        "City": "",
        "Country": "",
        "Floor": "",
        "Geocode": "fake geo code",
        "Latitude": "xx.xxxxxxx",
        "Location": "Mandatory param",
        "Longitude": "yy.yyyyyyy",
        "Postcode": "",
        "Room": "",
        "State": "",
        "Suburb": ""
    }
LocationsDeleteDELETEhttp://host/en/omk/admin/api/v2/locations/{location-name}.jsonDeletes the location entry from configurationshttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/locations/Mandatory param.json
{
    "redirect_to": null,
    "success": 1
}

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
{
    "Description": "Dummy Entry for API",
    "Name": "dummy",
    "Poll_Interval": "5m",
    "Port": "",
    "Service_Name": "dummy.exe",
    "Service_Type" : "new_type"
}
ServicesGETGEThttp://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
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
{
    "Description": "Dummy Entry for API",
    "Name": "dummy",
    "Poll_Interval": "5m",
    "Port": "",
    "Service_Name": "dummy.exe",
    "Service_Type": "new_type",
    "_id": "dummy"
}
ServicesUpdatePUThttp://host/en/omk/admin/api/v2/services/{service-name}.jsonUpdate Services entryhttp://apollo.opmantek.net:8080/en/omk/admin/api/v2/services/dumy.json
{
    "Description": "Dummy Entry for API",
    "Name": "dummy_updated",
    "Poll_Interval": "10m",
    "Port": "",
    "Service_Name": "dummy.exe",
    "Service_Type" : "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
{
    "redirect_to": null,
    "success": 1
}







Contacts

Create

POSThttp://host/en/omk/admin/api/v2/contacts/.json
http://host/en/omk/admin/api/v2/contacts/.json
ContactsGETGEThttp://host/en/omk/admin/api/v2/contacts/.json
http://host/en/omk/admin/api/v2/contacts/.json
ContactsGETGEThttp://host/en/omk/admin/api/v2/contacts/{contact-name}.json
http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/johntest.json
ContactsUpdatePUT

http://apollo.opmantek.net:8080/en/omk/admin/api/v2/contacts/johntest.json
ContactsDeleteDELETE

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

Name

OperationMethodURLResponseExample

 code-block

Escalations

Create

POST



EscalationsGETGET



EscalationsUpdatePUT



EscalationsDeleteDELETE



Events

Create

POST



EventsGETGET



EventsUpdatePUT



EventsDeleteDELETE



Events





Name

OperationMethodURLResponseExample

 code-block

Polling-Policy





Polling-Policy





Polling-Policy





Polling-Policy





Polling-Policy





Name

OperationMethodURLResponseExample

 code-block

Users





Users





Users





Users





Users





Name

OperationMethodURLResponseExample

 code-block

Access





Access





Access





Access





Access





Name

OperationMethodURLResponseExample

 code-block

Customers





Customers





Customers





Customers





Customers





Name

OperationMethodURLResponseExample

 code-block

Business Services





Business Services





Business Services





Business Services





Business Services





  • No labels