Áú»¢¶Ä²©

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.

drule.get

?????

integer/array drule.get(object parameters)

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

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

???????

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

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

????? ??? ?????
dhostids string/array ???? ?? ???? ????? ????? ?? ??????? ??????.
druleids string/array ???? ?? ???? ????? ?? ?????? ???????.
dserviceids string/array ???? ?? ???? ????? ????? ?? ???????? ??????.
selectDChecks query ???? ?????? dchecks ?? ?????? ?????? ??????? ?? ??? ??????.

???? ?'count'.
selectDHosts query ???? ?????? dhosts ?? ??????? ?????? ?????? ?? ??? ??? ??????.

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

?? ?? ??-??????? ?????:
selectDChecks - ??????? ?????? ??? dcheckid;
selectDHosts - ?????? ?????? ??? dhostsid.
sortfield string/array ???? ?? ?????? ??? ????????? ???????.

????? ??????? ??: druleid ?-name.
countOutput boolean ???????? ???? ???????? ??? ????? ?-'get' ??????? ?????? ?????? ?????????.
????? ????????
excludeSearch ??????
filter object
limit ???? ???
??? ??????
preservekeys ??????
????? ???????
searchByAny boolean
searchWildcardsEnabled boolean
sortorder ??????/????
startSearch boolean

???? ?????

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

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

???????

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

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

?????????:

{
            "jsonrpc": "2.0",
            "method": "drule.get",
            "params": {
                "output": "??????",
                "selectDChecks": "??????"
            },
            "auth": "038e1d7b1735c6a5436ee9eae095879e",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": [
                {
                    "druleid": "2",
                    "proxy_hostid": "0",
                    "name": "??? ??????",
                    "iprange": "192.168.3.1-255",
                    "delay": "5s",
                    "nextcheck": "1348754327",
                    "status": "0",
                    "dchecks": [
                        {
                            "dcheckid": "7",
                            "druleid": "2",
                            "type": "3",
                            "key_": "",
                            "snmp_community": "",
                            "ports": "21",
                            "snmpv3_securityname": "",
                            "snmpv3_securitylevel": "0",
                            "snmpv3_authpassphrase": "",
                            "snmpv3_privpassphrase": "",
                            "uniq": "0",
                            "snmpv3_authprotocol": "0",
                            "snmpv3_privprotocol": "0",
                            "host_source": "1",
                            "name_source": "0"
                        },
                        {
                            "dcheckid": "8",
                            "druleid": "2",
                            "type": "4",
                            "key_": "",
                            "snmp_community": "",
                            "ports": "80",
                            "snmpv3_securityname": "",
                            "snmpv3_securitylevel": "0",
                            "snmpv3_authpassphrase": "",
                            "snmpv3_privpassphrase": "",
                            "uniq": "0",
                            "snmpv3_authprotocol": "0",
                            "snmpv3_privprotocol": "0",
                            "host_source": "1",
                            "name_source": "0"
                        }
                    ]
                },
                {
                    "druleid": "6",
                    "proxy_hostid": "0",
                    "name": "????? ???? Áú»¢¶Ä²©",
                    "iprange": "192.168.1.1-255",
                    "delay": "1h",
                    "nextcheck": "0",
                    "status": "0",
                    "dchecks": [
                        {
                            "dcheckid": "10",
                            "druleid": "6",
                            "type": "9",
                            "key_": "system.uname",
                            "snmp_community": "",
                            "ports": "10050",
                            "snmpv3_securityname": "",
                            "snmpv3_securitylevel": "0",
                            "snmpv3_authpassphrase": "",
                            "snmpv3_privpassphrase": "",
                            "uniq": "0",
                            "snmpv3_authprotocol": "0",
                            "snmpv3_privprotocol": "0",
                            "host_source": "2",
                            "name_source": "3"
                        }
                    ]
                }
            ],
            "????": 1
       }

???? ????

????

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