DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

XSLT call for LoadBalancerGroup status

  • 1.  XSLT call for LoadBalancerGroup status

    Posted Thu July 29, 2021 01:39 PM

    Hello!

    I have a demand for my WebServiceProxy service where I am supposed to redirect a call to one of backends using XSLT and an ID from HTTP header.

    I also have a loadBalancerGroup where server1 and server2 are included as members. LoadBalancer is operational.

    Scenario:

    1. DataPower WSP receives a request with additional parameter in HTTP header "client-id"
    2. XSLT script is supposed to read the header part and decide to what backend server it should be redirected.
    3. If even -> server1, if odd -> server2.
    4. In case of even and server1 is not operational, it should be sent to server2 instead.

    I do understand how to read HTTP header and how to set route.

    What I do not understand is how could I check DataPower LoadBalancer group members status.

    Is there a way to check that using xslt?



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: XSLT call for LoadBalancerGroup status
    Best Answer

    Posted Mon August 02, 2021 10:17 AM

    Hi,

    you can query the status using variable var://service/system/status/LoadBalancerStatus2

    --HP



    #DataPower
    #Support
    #SupportMigration