The method allows to retrieve discovered services according to the given parameters.
Parameters
(object)
Parameters defining the desired output.
The method supports the following parameters.
an array of objects;
the count of retrieved objects, if the
countOutput
parameter has been used.
Examples
Retrieve services discovered on a host
Retrieve all discovered services detected on discovered host “11”.
Response:
"jsonrpc": "2.0",
"result": [
{
"dhostid": "11",
"value": "",
"port": "80",
"status": "1",
"lastup": "0",
"lastdown": "1348650607",
"dcheckid": "5",
"ip": "192.168.1.134",
"dns": "john.local"
{
"dserviceid": "13",
"dhostid": "11",
"port": "21",
"status": "1",
"lastup": "0",
"lastdown": "1348650610",
"dcheckid": "6",
"ip": "192.168.1.134",
"dns": "john.local"
}
],
}
Source
CDService::get() in ui/include/classes/api/services/CDService.php.