Is it possible to access a cluster-wide property using a name that is constructed including a context variable?
Looking to access a cluster-wide property in my policy, but where the cluster-wide property name is constructed dynamically by the policy, including a context variable.
For example, if context variable ${foo} contains a string, "xyz", I want to do something like:
Set context variable myVar to gateway.${foo}.AUTH_TYPE
and then the policy tries to retrieve a CWP named gateway.xyz.AUTH_TYPE and store it into the myVar CV.
Is that possible?
If it isn't possible to that directly, is there any way to do it indirectly?
Release : 10.1
No Cluster-wide properties do not take context variables.
HOWEVER
For dynamic variable you can use the “look up context variable” assertion
The Look Up Context Variable assertion is used to dynamically look up the value of a context variable and then store the value in another context variable.
https://techdocs.broadcom.com/us/en/ca-enterprise-software/layer7-api-management/api-gateway/10-1/policy-assertions/assertion-palette/policy-logic-assertions/look-up-context-variable-assertion.html