Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-9300

API methos should not return wrong properties

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 7.0.0
    • API (A)
    • None

      Functions should return only the properties of "their" objects

       

      template.get is returning 

      {     "proxyid": "0",     "host": "Website by Browser",     "status": "3",     "ipmi_authtype": "-1",     "ipmi_privilege": "2",     "ipmi_username": "",     "ipmi_password": "",     "maintenanceid": "0",     "maintenance_status": "0",     "maintenance_type": "0",     "maintenance_from": "0",     "name": "Website by Browser",     "flags": "0",     "templateid": "10628",     "description": "The template to monitor a website's availability and performance on the website by Browser.\r\n\r\nZabbix server uses a web browser to perform navigation and collect performance metrics.\r\n\r\nGenerated by official Zabbix template tool \"Templator\"",     "tls_connect": "1",     "tls_accept": "1",     "tls_issuer": "",     "tls_subject": "",     "tls_psk_identity": "",     "tls_psk": "",     "custom_interfaces": "0",     "uuid": "2526dce71d714e31bd545e96370c67b2",     "vendor_name": "Zabbix",     "vendor_version": "7.0-0",     "proxy_groupid": "0",     "monitored_by": "0"   }

       

      which have properties not correspondig to the template object and with no meaning at the template level

            zabbix.dev Zabbix Development Team
            gustavo.guido@custos.uy Gustavo Guido
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: