azure apim policy script to parse the tabular data and assign local variable value for given query parameters

Muthusamy, Kandasamy 0 Reputation points
2024-05-05T16:43:25.94+00:00

I have data configuration data like below.

User's image

In the azure inbound policy, i wanted to assign local variables primary and secondary with value from the configuration for the given zone and model. eg, For query parameters zone: RNPCI, Model:GPT-35-TURBO, the local variable primary should be assigned as API26 and local variable secondary should be assigned as API32.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,805 questions
{count} votes