Is it possible to check part of the value of header or queryparam using " * "?
Hello community,
Let us say I have a header values = abcdapigee, dcefapigee, xyzdapigee, and son. And let us say also I have policy implemented based on this header value. So I put the condition like
<Condition>(request.header.{headername}="*apigee")</Condition> .. But it is not working.
Can you guys help me how to make this work?
Regards.
Solved! Go to Solution.
request.header.<header_name>.values.string
& apply the required condition.
request.header.<header_name>.values.string
& apply the required condition.
Hello @Api-Evanjelist, my quetion is on header. And I tried the way you suggest me
<Condition>(request.header.{headername}.values.string matches "*apigee*")</Condition>, But it doesn't work.
Share a sample if you have created or provide the trace. All you need to pass the appropriate header in the request header and apply the condition based of the incoming headername.