Table of Contents
< All Topics
Print

[IAG] Failed to use the API open interface [Get Throughput]

Problem Description


382695e7b33b20cc66.png (61 KB)

According to the interface document test, the API open interface is used to read the device's traffic map, and it is found that the reading fails

675885e7b34c4cb450.png (27.21 KB)

The error is as follows:

203865e7b353755f3d.png (24.43 KB)

Process——

  1. Check the configuration and find that random and md5 are written in reverse

    228505e7b35666d844.png (28.1 KB)
  2. After changing to the correct value, you can read the throughput

    79225e7b39ad9405b.png (6.54 KB)
    Note:
  3. Flow rate unit (bits or bytes), the default value is bytes
  4. The default value of the network port is all WAN ports. If you need to read other network ports, please use the parameter interface

    123505e7b3a7eee3f4.png (5.75 KB)
  5. send indicates the traffic sent by the network port, and recv indicates the traffic received by the network port

solution

  1. When an error occurs
    20735e7b35be315c2.png (7.9 KB)
    If the value of random is used repeatedly, please replace random.
    The document states: random is a randomly generated string when the client requests it, and the same random can only be used once within an hour, otherwise the permission check will fail.

    504775e7b36413aaaa.png (44.82 KB)
  2. When an error occurs
    290675e7b36a362c5d.png (9.6 KB)
    Yes, it means that the md5 value is entered incorrectly. Please enter md5 correctly.

Original Link

https://support.sangfor.com.cn/cases/list?product_id=22&type=1&category_id=7443&isOpen=true