The GUI API is use to get the information that is used by op5 Monitor GUI. It can give you information about all objects used by the op5 monitor.Let us say that your monitor server is called op5-monitor you can reach the documentation on the following location:The configure API is used to manipulate the object configuration used by op5 Monitor. It works against the configure database the same way as the op5 Monitor Configuration tool does.Let us say that your monitor server is called op5-monitor you can reach the documentation on the following location:It is generated by doxygen and contains information like classes and methods used in the op5 Monitor configuration tool.
2 Basically, you 'visit' an URI, which triggers op5 Monitor to do something, and you get a response telling you what happened.In this example we will create a new host called my_server with one ping service. The IP for my_server is 192.168.0.20In this example the op5 server is called op5-server, the username is joe and joes password is joespassword.By visiting the <monitor-installation>/api/help/config/host, you get information on how to create a host. This is what needs to be done in PHP:curl_setopt($a_handle, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));curl_setopt($a_handle, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));Before the changes are applied, you need to confirm them and then save them so that they become part of your configuration. This can be done in two ways, either by Saving changes in the op5 Monitor GUI, or by adding an additional call via the REST API:Now, visiting op5-server/api/config/host/my_server in a browser should show you the live configuration.