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

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 5.2.0alpha1, 5.2 (plan)
    • 4.0.20
    • API (A)
    • None
    • zabbix-server-mysql 1:4.0.19-1+stretch
    • Sprint 65 (Jun 2020), Sprint 66 (Jul 2020)
    • 0.125

      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.

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

              Created:
              Updated:
              Resolved: