Route via HTTP(s) assertion connection tab to use multiple urls input as context variable
search cancel

Route via HTTP(s) assertion connection tab to use multiple urls input as context variable

book

Article ID: 118827

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

I'm trying to configure a context variable/CWP for the Route via HTTP(s) assertion that would take a list of URLs instead of having to set them manually hard coded via the connection tab (using round robin strategy).

When setting it to a multi valued context variable (containing multiple URLs) all the values get set as a single URL during execution and fails. I was really hoping to be able to populate the multiple urls property via a single parameter/cluster property that is a list, and same for multiple IPs as a list since currently it's the main request of our customer.




 

Environment

Release:
Component: APIGTW

Resolution

Uploaded a sample policies (test1.xml) which takes some of what was used the communities post.
 
  1. Set variable list of URLS separated by comma
  2. Splitting the variable by comma puts each value into array
backend-url-mv-ctx-var
  1. Connection tab added each array in a list
${backend-url-mv-ctx-var[0]}
${backend-url-mv-ctx-var[1]}
${backend-url-mv-ctx-var[2]}
${backend-url-mv-ctx-var[3]}