FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
ydong01
Staff
Staff
Article Id 343604
Description

This article describes how to view explicit web proxy users from API.

It will be useful for daily monitoring work, especially for automation.

Scope FortiGate.
Solution

There are 3 methods to show explicit web proxy users: from GUI, and CLI. It can get the same result, but the result is not too easy to automation for further use.

Using API will be easy to integrate with other tools.

 

From GUI:

Go to Users and Devices.

 explict-proxy-user.PNG

 

From CLI:

 

diag wad user list

ID: 280, VDOM: root, IPv4: 10.173.1.26
user name : proxy
worker : 0
duration : 177
auth_type : IP
auth_method : Basic
pol_id : 1
g_id : 2
user_based : 0
expire : 5224
LAN:
bytes_in=1007 bytes_out=14551
WAN:
bytes_in=14479 bytes_out=839

 

From API:

https://<FGT IP>/api/v2/monitor/user/firewall?access_token=<API Token>

 

explict-proxy-user-api.PNG

 

For more information, visit https://fndn.fortinet.net/.