AXAPI not working

abhinavabhinav Member

HI guys,


I am trying to fetch details of a10 using axapi but it is not working for me.

I am issuing this command " curl -k GET https://192.168.111.134/axapi/v3/ddos/resource-tracking/cpu?oper=true -H "Content-Type:application/json" -H "Authorization: A10 61d63f9924b7a8eecd1441d5fa274b" "


it is giving the error like below

curl: (6) Could not resolve host: GET

{

 "response": {

  "status": "fail",

  "err": {

   "code": 1023656960,

   "from": "JSON",

   "msg": "URI not found.",

   "location": "resource-tracking"

  }

 }

}curl: (6) Could not resolve host: H

curl: (3) Port number ended with 'a'


please help me to solve this problem.

Comments

  • john_allenjohn_allen Member, A10ers ✭✭

    If you do not have a DDoS license (IE> TPS), calls to the '/ddos/' part of the aXAPI will return that error. A better call might be: https://192.168.111.134/axapi/v3/system-cpu/oper if you are just trying to get the CPU % readings.

Sign In or Register to comment.