IP Routing Policy Configuration Values
Updated
Configuration Values
The following configuration values can be defined while configuring the IP Routing Policy on the Call Transformation page:
| Field name | Type | Field Value | Required/Optional | Description |
|---|---|---|---|---|
| Processing Adapter | String | com.mashery.proxy.customer.generic.iprouter.processor | Required | Adapter used to route API requests based on the configured IP addresses to the specified backend target. |
| Perform Pre-processing | Boolean | Enabled | Required | When enabled, the policy routes requests based on the X-Forwarded-For header and configured IP-to-hostname mappings before the request is forwarded to the backend. |
| Data to make available for pre-processing (PreInput Value) | Map | — | Optional | Specifies the input data made available for pre-processing. |
| Map |
| Optional | Map of IP router identifiers to their corresponding values for routing configuration. |
Examples
Data to make available for pre-processing
The following is an example value for the Data to make available for pre-processing field.
hostname_map: {"123.456.7.8":"api-target-eu.stats.com","12.34.5.6/22":"api-target-us.stats.com"}
Configuration Steps
You can configure this policy as a Processor using either of the following UIs. Refer to the following for configuration steps:
- Configuring Call Transformations in Policy UI (Recommended — supports policy picker with inline help and auto-population)
- Configuring Call Transformation in Legacy UI