Skip to main content
kmak
Staff
Staff
June 11, 2026

Technical Tip: How to obtain Real Server Pool members' IP addresses using FortiWeb admin RESTful API

  • June 11, 2026
  • 0 replies
  • 24 views

Description

This article describes the steps to obtain the real server IP address using the FortiWeb RESTful API.

Scope

FortiWeb v6.3.17 or later.

Solution

FortiWeb Admin RESTful API supports the Server Pool management activity. All the created Server Pools can be listed at once using the RESTful API, while each of the real server members and IP Addresses can only be queried based on each Server Pool name.

 

  1. Using the RESTful API to obtain the list of Server Pools.

https://<FortiWeb-IP>/api/v2.0/cmdb/server-policy/server-pool

 

  • Using Postman app to query the API.

7132f35a.jpg

 

  • Using the cURL command to query the API.

51db86d0.jpg

 

  1. With the Server Pool Name, query the Real Server members and the IP addresses using the API URL:

https://<FortiWeb-IP>/api/v2.0/cmdb/server-policy/server-pool/pserver-list?mkey=<POOLNAME>


  •  Using the Postman app to query the API.

d3786cd4.jpg


  • Using the cURL command to query the API.

bb9d7633.jpg

 

Related documents: