Ad Widget

Collapse

http agent API - token authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • surya_99
    Junior Member
    • Feb 2021
    • 1

    #1

    http agent API - token authentication


    Working on zabbix http agent to fetch data from Barracuda WAF API.

    I've grab the token from HTTP Post item but now how can we use same token to authenticate in get http item.

    Received token is successfully working in curl command but not known how can use token in http get item to authenticate?

    curl -X GET "http://<WAF IP/Domain>:8000/restapi/v3/services?category=operational" -H "accept: application/json" -u "token:"

    Anyone can suggest me?

  • goitia
    Junior Member
    • Nov 2019
    • 1

    #2
    Have the same question.

    I can get the token from http API, then I must use this token to make a query and get key values.

    How to make it?

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      http items are "one step" items... you cannot acquire data from one call and use it in other.. I think there are some workarounds in forum, which probably use some API calls to update macros for items etc... But it is not a simple task, what you need..

      Comment

      Working...