Skip to main content
anova
Staff
Staff
May 13, 2026

Technical Tip: How to retrieve content routing elements from HTTP Content Routing Policy using REST API

  • May 13, 2026
  • 0 replies
  • 18 views

Description

This article describes how to collect HTTP content routing details using the REST API on FortiWeb.

Scope

 FortiWeb.

Solution

Before issuing the API call, a token for the 'Authorization' header is needed using base64. This is to pass the authentication of FortiWeb.


  1. Using the API call 'https://<IP-OR-DOMAIN>/api/v2.0/cmdb/server-policy/http-content-routing-policy' will list all content routing elements in the FortiWeb, specifying its respective Server Policy, where it is associated and a server pool assigned.


64c92154.png


  1. Using the API call 'https://<IP-OR-DOMAIN>/api/v2.0/cmdb/server-policy/policy/http-content-routing-list?mkey=<POLICY-NAME>' is more specific as it will only display the content of a specific policy (defined in the parameter mkey); however, it will have additional details such as Web Protection Profile assigned to a route member.


59c02cb1.png