Fortinet black logo

FortiOS Carrier

Displaying and flushing GTP tunnels using REST API calls

Displaying and flushing GTP tunnels using REST API calls

You can use the following FortiOS Carrier REST API commands to display and flush GTP tunnels:

GET /api/v2/monitor/firewall/gtp

POST /api/v2/monitor/firewall/gtp/flush

You can add GTP tunnel filter parameters to both of these REST API calls to display or flush selected GTP tunnels. The REST API calls use the same filter options as the diagnose firewall gtp tunnel filter command (see Setting up GTP tunnel filters).

GET /api/v2/monitor/firewall/gtp accepts GTP filter parameters as query string parameters.

For example:

https://<address>/api/v2/monitor/firewall/gtp?filter=msisdn==12345678900001&filter=imsi==0213101232&filter=ms_addr==11.0.1.50&filter=rat_type>=eutra&filter=gtp_profile=@gtpv2-pr

POST /api/v2/monitor/firewall/gtp/flush, accepts GTP filter parameters as body data in json format.

For example:

POST https://172.18.62.85:443/api/v2/monitor/firewall/gtp/flush

Body data: {"msisdn": "12345678900002", "imsi": "0213101232", "ms_addr": "11.0.1.50", "rat_type": "eutran", "gtp_profile": "gtpv2-prf"}

More information about the FortiOS REST API, is available from the Fortinet Developer Network (FNDN).

Displaying and flushing GTP tunnels using REST API calls

You can use the following FortiOS Carrier REST API commands to display and flush GTP tunnels:

GET /api/v2/monitor/firewall/gtp

POST /api/v2/monitor/firewall/gtp/flush

You can add GTP tunnel filter parameters to both of these REST API calls to display or flush selected GTP tunnels. The REST API calls use the same filter options as the diagnose firewall gtp tunnel filter command (see Setting up GTP tunnel filters).

GET /api/v2/monitor/firewall/gtp accepts GTP filter parameters as query string parameters.

For example:

https://<address>/api/v2/monitor/firewall/gtp?filter=msisdn==12345678900001&filter=imsi==0213101232&filter=ms_addr==11.0.1.50&filter=rat_type>=eutra&filter=gtp_profile=@gtpv2-pr

POST /api/v2/monitor/firewall/gtp/flush, accepts GTP filter parameters as body data in json format.

For example:

POST https://172.18.62.85:443/api/v2/monitor/firewall/gtp/flush

Body data: {"msisdn": "12345678900002", "imsi": "0213101232", "ms_addr": "11.0.1.50", "rat_type": "eutran", "gtp_profile": "gtpv2-prf"}

More information about the FortiOS REST API, is available from the Fortinet Developer Network (FNDN).