API: Hostgroup getId does not work

XMLWordPrintable

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

      I cannot seem to get the id of a hostgroup through the API:

      Sending:{"jsonrpc":"2.0","method":"hostgroup.getId","id":0,"auth":"f5cdd64f276ca0de9c117a1ade132976","params":{"name":"Templates"}}

      array(3) {
      ["jsonrpc"]=>
      string(3) "2.0"
      ["error"]=>
      array(3)

      { ["code"]=> int(-32602) ["message"]=> string(15) "Invalid params." ["data"]=> string(29) "Action (getId) does not exist" }

      ["id"]=>
      int(0)
      }

            Assignee:
            Unassigned
            Reporter:
            Bart Verwilst
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: