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:

    1. "jsonrpc": "2.0",
    2. "result": [
    3. {
    4. "dhostid": "11",
    5. "value": "",
    6. "port": "80",
    7. "status": "1",
    8. "lastup": "0",
    9. "lastdown": "1348650607",
    10. "dcheckid": "5",
    11. "ip": "192.168.1.134",
    12. "dns": "john.local"
    13. {
    14. "dserviceid": "13",
    15. "dhostid": "11",
    16. "port": "21",
    17. "status": "1",
    18. "lastup": "0",
    19. "lastdown": "1348650610",
    20. "dcheckid": "6",
    21. "ip": "192.168.1.134",
    22. "dns": "john.local"
    23. }
    24. ],
    25. }

    Source

    CDService::get() in ui/include/classes/api/services/CDService.php.