Matching header queryparam value.

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 Solved
1 3 139
1 ACCEPTED SOLUTION

Is the question on header or queryparam?
 
For header use request.header.<header_name>.values.string & apply the required condition.
<Condition>(request.header.demo.values.string matches "*apigee*")</Condition>
 
FYI:

 

 

View solution in original post

3 REPLIES 3

Is the question on header or queryparam?
 
For header use request.header.<header_name>.values.string & apply the required condition.
<Condition>(request.header.demo.values.string matches "*apigee*")</Condition>
 
FYI:

 

 

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.