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

invalid property described on api method references.

XMLWordPrintable

    • Icon: Documentation task Documentation task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • API (A)
    • Rocky Linux 9.2
      Zabbix 6.0.21

      Steps to reproduce:

      1. write a request with "trigger.get" method, using "selectFunctions" property in params.
      2. specify the parameter to be returned that shows the name of the function (according to the method reference, it is "function")
      3. send the request to the api

      Result:

      1. returned properties don't have the name of function. 
      2. change the request parameter from "function" to "name", then returned property will show  the name of function. ( returned property key is still "function" though)

      Expected:

      The parameters in request and return should be the same when they indicate the same thing.
      It is confusing that the api requires different parameters for request and return.

       

      P.S.

      I attached sample script and  its http-content dumpfile.

      This may be trivial issue but I will be grateful if you consider it.

      Thank you in advance.

        1. 01_content.txt
          2 kB
        2. 01_invalid_params.sh
          0.6 kB
        3. 02_content.txt
          2 kB
        4. 02_valid_params.sh
          0.6 kB

            zabbix.dev Zabbix Development Team
            mejakatayama Meja Katayama
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: