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

item.get "application" parameter silently ignored

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.0.29, 6.4.14
    • API (A)
    • None
    • Support backlog

      Since Zabbix 5.4, "Application" is depreciated, however, it is still possible to create an API call using application filter.

      Steps to reproduce:
      Create an API call with item.get method using params : application filter:

      curl --request POST \
        --url 'http://127.0.0.1/api_jsonrpc.php' \
        --header 'Authorization: Bearer 62596ff9348d59428acd4d7d01b3710ef8618ba72956c0743400941402569io2' \
        --header 'Content-Type: application/json-rpc' \
        --data '{"jsonrpc":"2.0","method":"item.get","params":{"application":"test"},"id":1}'
      
      

      Result:
      API call is successful.

      Expected:
      API call fails with 'invalid parameter'

            zabbix.dev Zabbix Development Team
            ksalins Karlis Salins
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: