selectItems parameter on host.get is failing when 'extend' value is used

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Major
    • None
    • Affects Version/s: 2.0.3
    • Component/s: API (A)

      When trying to use this json query:

              $json = {
                      jsonrpc => '2.0',
                      method => 'host.get',
                      params =>
                      {
                              #output => 'extend',
                              output => ['hostid', 'name', 'host', 'available', 'interfaces', 'items'],
                              sortfield => "name",
                              monitored_hosts => "1",
                              selectInterfaces => 'extend',
                              selectItems => 'extend',
      
                      },
                      id => 2,
                      auth => "$authID",
                      };
      
      

      The query fails. When I change the selectItems value to either 'count' or 'refer' it works fine. The docs indicate that shorten doesn't work but don't say anything about 'extend' so I'm assuming this should work.

        1. script.pl
          2 kB
          Romeo Theriault

            Assignee:
            Unassigned
            Reporter:
            Romeo Theriault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: