# XML CONTENT BASED ROUTING

**URL:** <https://community.f5.com/t/xml-content-based-routing/43731>\
**Category:** Technical Forums\
**Tags:** big-ip, security, application-delivery\
**Created:** [March 7, 2020, 9:10am UTC](https://community.f5.com/t/xml-content-based-routing/43731 "2020-03-07T09:10:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaditya\_Khati](https://avatars.discourse-cdn.com/v4/letter/a/9f8e36/32.png) [@Aaditya\_Khati](https://community.f5.com/u/Aaditya_Khati)\
**Post date:** [March 7, 2020, 9:10am UTC](https://community.f5.com/t/xml-content-based-routing/43731/1 "2020-03-07T09:10:56Z")

</div>

Hi Community,

I have a requirement where my company hosts a third party API and it is published to our intranet. The API should only be accessible for our admin, users and our partners who connect through the VPN using an IP Pool. The thing i am trying to achieve is, if UID ‘10’ Sends a query with **MyQuery1** then his query should pass but if he sends **MyQuery2** then he should get a reset or redirected. Similar for UID 20, UID N. My organization currently has AWAF license.

I want to know can this be achieved through AWAF licesne with basic LTM ? If no, suggest me how i can achieve this

\<?xml version=“1.0” encoding=“UTF-8”?\>

\<FIXML xsi:schemaLocation=“[https://subdomain.redacted.com/redactedpath](https://subdomain.redacted.com/redactedpath) RedacTed.xsd” xmlns=“[https://subdomain.redacted.com/redactedpath](https://subdomain.redacted.com/redactedpath)” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”\>\<Header\>

\<RequestHeader\>

\<MessageKey\>

**\<UID\>10\</UID\>**

\<ServiceRequestId\> **MyQuery1** \</ServiceRequestId\>

\<ServiceRequestVersion\>2\</ServiceRequestVersion\>

\<ChannelId\>IDTWO\</ChannelId\>

\<LanguageId\>\</LanguageId\>

\</MessageKey\>

.

.

.

Regards,

Aaditya

---

<div class="post-metadata">

**Author:** ![Samir](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/samir/32/13073_2.png) [@Samir](https://community.f5.com/u/Samir)\
**Post date:** [March 23, 2020, 4:24am UTC](https://community.f5.com/t/xml-content-based-routing/43731/2 "2020-03-23T04:24:12Z")

</div>

Its not possible via iRule per my knowledge but if you can try alternate method[HTTP:payload].

Send the **\<UID\>10\</UID\>** data/parameter under http-payload and take decision based on that. Hope it will help you.
