Section | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Introduction
|
Resource Path
The reosurce path specifies which location information should be accessed.
Especially if the device receives data from remote satellites (See Distributed Monitoring and Integration Interfaces).
Level | 1 | 2 | 3 | 4 |
---|---|---|---|---|
Description | Version | Tenant | Location | Resources |
Example 1 | /v1 | /all | /local | /hosts/* |
Example 2 | /v1 | /aeg | /berlin | /services/ping |
Example 3 | /v1 | /siemens | /site382 | /problems |
Resources
/hosts
Example | /hosts/{host_name|*|all} |
---|---|
Get all hosts | hosts/* |
Get all hosts, filter details for the fields current_state and plugin_output | hosts/*?fields=current_state,plugin_output |
Get details for the host 'Google' | hosts/Google |
...
These commands support arguments which must be defined in an escaped manner.
Info |
---|
The '/' Some commands require a file system path as argument which contains slashes, like '/mnt/hd/daaz/var/addons'. These slashes within the path must be given as backslash '\' and further arguments for the commands are separated through slashes.backslashes, like '\mnt\hd\daaz\var\addons'. Some browser such as Googles Chrome will automatically turn any backslash into a slash. Therefore try to specify backslashes as "%5C" if your browser does not allow backslashes. Example http://<IP>:81/v1/*/local/oscmd/ls/-l/%5Cmnt%5Chd%5Cdaaz%5Cvar |
Syntax
Code Block |
---|
/oscmd/{command}/argument_1/argument_2/ |
...