Layer7 API Management

  • 1.  API Gateway looping over SiteMinder built in variables

    Posted Apr 15, 2016 03:44 PM

    the API gateway provides a data construct for looking at SiteMinder variables, notably the built in headers, however, there does not seem to be an easy way to loop over them.

     

    I am particularly interested in how to loop over these variables... (given that we only have a "for/each" loop construct)

     

    EXAMPLE FROM THE DOCUMENTATION:

    ${<prefix>.smcontext.attributes.length}   Returns the size of the attribute list.

    ${<prefix>.smcontext.attributes.<index>.name} Returns the name of the <index> attribute. Example: ${siteminder.smcontext.attributes.0.name}

    ${<prefix>.smcontext.attributes.<index>.value} Returns the value of the <index> attribute.

     

    Example: ${siteminder.smcontext.attributes.0.value}

     

    The data structure totally lends itself to for/next.

     

    How do I put in an enhancement request to add the for/next loop construct to the assertion language so that I can loop over this unknown size loop.

     

    I had a case open for this exact issue, but I was directed here.

     

    Cheers,

    Thanks



  • 2.  Re: API Gateway looping over SiteMinder built in variables
    Best Answer

    Broadcom Employee
    Posted Apr 18, 2016 12:08 AM

    seems to be the same question with CA API Gateway Policy Assertion looping over siteMinder variables

    please check if the provided answers meet your needs.