Áú»¢¶Ä²©

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.

hostgroup.get

?????

integer/array hostgroup.get(object parameters)

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

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

???????

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

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

????? ??? ?????
graphids string/array ???? ?? ?????? ???? ??????? ?????? ?? ?????? ?? ?????? ???????.
groupids string/array ???? ?? ?????? ?????? ?? ???? ?????? ?????? ?????.
hostids string/array ???? ?? ?????? ?????? ??????? ?? ??????? ???????.
maintenanceids string/array ???? ?? ?????? ?????? ???????? ???????? ???????.
monitored_hosts flag ???? ?? ?????? ?????? ??????? ?????? ???????.
real_hosts flag ???? ?? ?????? ?????? ??????? ??????.
templated_hosts flag ???? ?? ?????? ???? ??????? ??????.
templateids string/array ???? ?? ?????? ?????? ??????? ?? ??????? ???????.
triggerids string/array ???? ?? ?????? ???? ??????? ?????? ?? ?????? ?? ???????? ???????.
with_graphs flag ???? ?? ?????? ???? ??????? ?????? ?? ?????.
with_graph_prototypes flag ???? ?? ?????? ???? ??????? ?????? ?? ???? ????? ?? ?????.
with_hosts_and_templates flag ???? ?? ?????? ?????? ??????? ?????? ?? ??????.
with_httptests flag ???? ?? ?????? ?????? ??????? ?????? ?? ?????? ???????.

???? ?? ?????? with_monitored_httptests.
with_items flag ???? ?? ?????? ?????? ??????? ?????? ?? ?????? ?? ??????.

???? ?? ???????? with_monitored_items ?-with_simple_graph_items.
with_item_prototypes flag ???? ?? ?????? ???? ??????? ?????? ?? ???? ????? ?? ??????.

???? ?? ?????? with_simple_graph_item_prototypes.
with_simple_graph_item_prototypes flag ???? ?? ?????? ???? ??????? ?????? ?? ???? ????? ?? ??????, ???????? ?????? ????? ??? ???? ?????.
with_monitored_httptests flag ???? ?? ?????? ?????? ??????? ?????? ?? ?????? ??????? ???????.
with_monitored_items flag ???? ?? ?????? ???? ??????? ?????? ?? ?????? ?? ?????? ???????.

???? ?? ?????? with_simple_graph_items.
with_monitored_triggers flag ???? ?? ?????? ?????? ??????? ?????? ?? ??????? ???????. ?? ?????? ?? ?? ?? ??????? ??????? ??????.
with_simple_graph_items flag ???? ?? ?????? ???? ??????? ?????? ?? ?????? ???????.
with_triggers flag ???? ?? ?????? ?????? ??????? ?????? ?? ???????.

???? ?? ?????? with_monitored_triggers.
selectDiscoveryRule query ???? ?????? discoveryRule ?? ??? LLD ???? ?? ?????? ??????.
selectGroupDiscovery query ???? ?????? groupDiscovery ?? ??????? ?????? ?? ????? ?????.

??????? ?????? ?? ????? ????? ???? ????? ????? ??????? ???-????? ?? ????? ???? ??? ?? ?? ????????? ?????:
groupid - (string) ???? ?? ????? ????? ???????;
lastcheck - (timestamp) ??? ??? ?????? ?????? ?????? ???????;
name - (string) ?? ?? ??-????? ?? ????? ????;
parent_group_prototypeid - (string) ???? ?? ?????? ?? ?????? ?????? ????? ????? ?????? ??????;
ts_delete - ??? (timestamp) ???? ????? ???? ??? ?? ????? ??? ?????.
selectHosts query ???? ?????? hosts ?? ??????? ??????? ?????? ???????.

???? ?'count'.
selectTemplates query ???? ?????? templates ?? ??????? ??????? ?????? ?????.

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

?? ?? ??-??????? ?????:
selectHosts - ??????? ?????? ??? host;
selectTemplates - ?????? ?????? ??? ????.
sortfield string/array ???? ?? ?????? ??? ????????? ???????.

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

???? ?????

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

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

???????

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

???? ?? ?? ??????? ?? ??? ?????? ?????? ??? "???? Áú»¢¶Ä²©" ? "???? ??????".

?????????:

{
            "jsonrpc": "2.0",
            "method": "hostgroup.get",
            "params": {
                "output": "??????",
                "????": {
                    "??": [
                        "???? Áú»¢¶Ä²©",
                        "???? ??????"
                    ]
                }
            },
            "auth": "6f38cddc44cfbb6c1bd186f9a220b5a0",
            "????": 1
       }

????????:

{
            "jsonrpc": "2.0",
            "?????": [
                {
                    "groupid": "2",
                    "name": "???? ??????",
                    "internal": "0"
                },
                {
                    "groupid": "4",
                    "name": "???? Áú»¢¶Ä²©",
                    "internal": "0"
                }
            ],
            "????": 1
       }

???? ????

????

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