Áú»¢¶Ä²©

This is the documentation page for an unsupported version of Áú»¢¶Ä²©.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

dservice.get

?????

integer/array dservice.get(object parameters)

????? ?????? ????? ??????? ?????? ????? ????? ???????.

???? ?? ????? ???????? ??? ???. ?????? ??? ????? ?? ????? ???? ???? ??????? ????? ??????. ??? ????? ??????? ????? ????.

???????

(object) ??????? ???????? ?? ???? ?????.

????? ????? ???????? ?????.

????? ??? ?????
dserviceids string/array ???? ?? ??????? ?????? ?? ?????? ???????.
dhotids string/array ???? ?? ??????? ?????? ??????? ??????? ??????.
dcheckids string/array ???? ?? ??????? ?????? ????? ?? ??? ?????? ?????? ??????.
druleids string/array ???? ?? ??????? ?????? ????? ?? ??? ???? ?????? ???????.
selectDRules query ???? ?????? drules ?? ???? ?? ???? ?????? ????? ?? ??????.
selectDHosts query ???? ?????? dhosts ?? ???? ??????? ?????? ?????? ???? ??????.
selectHosts query ???? ?????? hosts ?? ??????? ?? ???? ????? IP ??????? ??? ??????.

???? ?'count'.
limitSelects integer ????? ?? ???? ??????? ???????? ?? ??? subselects.

?? ?? subselects ?????:
selectHosts - ?????? ????? ??? hostid.
sortfield string/array ???? ?? ?????? ??? ????????? ???????.

????? ??????? ??: dserviceid, dhostid ?-ip.
countOutput boolean ???????? ???? ???????? ??? ????? ?-'get' ??????? ?????? ?????? ?????????.
????? ????????
excludeSearch ??????
filter object
limit ???? ???
??? ??????
preservekeys ??????
????? ???????
searchByAny boolean
searchWildcardsEnabled boolean
sortorder ??????/????
startSearch boolean

???? ?????

(???? ???/????) ????? ???:

  • ???? ?? ?????;
  • ????? ?????????? ???????, ?? ?? ?????? countOutput ???? ?????.

???????

???? ??????? ?????? ?????

???? ?? ?? ???????? ?????? ????? ????? ?????? "11".

?????????:

{
            "jsonrpc": "2.0",
            "method": "dservice.get",
            "params": {
                "output": "??????",
                "dhotids": "11"
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": [
                {
                    "dserviceid": "12",
                    "dhostid": "11",
                    "???": "",
                    "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"
                }
            ],
            "????": 1
       }

See also

????

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