Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17955

Inconsistency in user.create/user.get API methods

    XMLWordPrintable

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 4.0.20
    • Fix Version/s: 5.2.0alpha1, 5.2 (plan)
    • Component/s: API (A)
    • Labels:
      None
    • Environment:
      zabbix-server-mysql 1:4.0.19-1+stretch
    • Team:
      Team B
    • Sprint:
      Sprint 65 (Jun 2020), Sprint 66 (Jul 2020)
    • Story Points:
      0.125

      Description

      I'm using API to sync zabbix users with LDAP users.
      When creating/updating of user (user.create/user.update) media section looks as folow:

      "*user_medias*": [
      
                          {
      
                              "mediatypeid": "1",
                              "sendto": [
                               "[email protected]" 
                           ],
                               "active": 0 
                           }
      
      ]
      

      When asking zabbix for user to compare (user.get), the same section looks different:

       "*medias*": [
                   {
                           "active": "0",
                           "sendto": [
                            "[email protected]"
                         ],
                           "mediatypeid": "1"
                   }
       ]
      

      That difference in naming is misleading.

        Attachments

          Activity

            People

            Assignee:
            talbergs Mārtiņš Tālbergs (Inactive)
            Reporter:
            MarekJ Marek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: