Bug in document "Getting started with Zabbix API": login example is incorrect

XMLWordPrintable

    • Type: Incident report
    • Resolution: Won't fix
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Component/s: Documentation (D)
    • Environment:
      Zabbix 1.8.3

      In example of login procedure via Zabbix API contents fragment of code:

      {
      "jsonrpc":"2.0",
      "method":"user.login",
      "params":

      { "user":"Admin", "password":"zabbix" }

      ,
      "id":1
      }

      It 's wrong, method "user.login" not supported in API. After send this request to API script i recieved response:

      {"jsonrpc":"2.0","error":

      {"code":-32602,"message":"Invalid params.","data":"Not authorized"}

      ,"id":6326}

      Correct method of authentification is "user.authenticate".

            Assignee:
            Unassigned
            Reporter:
            Vlad Vnukovsky
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: