Thank you , I will check on it.
Original Message:
Sent: Tue February 27, 2024 03:21 PM
From: Steve Linn
Subject: How to read Cache Variable which is set on invoke
Hi Santhoshkumar,
I believe your solution is then a catalog property which is a property managed solely by the API Manager. Note this is different from an API property's catalog specific property override value. Upon deployment, if an API policy property detects a $(name) where name is a catalog property, it will resolve that variable prior to any publish to the Gateway. As far as the Gateway is concerned, the API was configured with a string literal, but assuming both APIs reference the same catalog property, they'll both use the same value. See point 21 in https://www.ibm.com/docs/en/api-connect/10.0.5.x_lts?topic=catalogs-creating-configuring.
Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
Original Message:
Sent: Tue February 27, 2024 03:09 PM
From: santhoshkumar surisetty
Subject: How to read Cache Variable which is set on invoke
Thank you for your reply, It is good solution to reference the same value in different policy in the same API. But I want to read this cache key in different API Called readTokenAPI after setting values in setToken API . Can two different API share same cache key , one is to read and other is to set? , As these values store in document cache of datapower , I thought that there would be way to read it.
------------------------------
santhoshkumar surisetty
Original Message:
Sent: Tue February 27, 2024 02:31 PM
From: Steve Linn
Subject: How to read Cache Variable which is set on invoke
Hi Santhoshkumar,
There is no capability to get policy configuration, but since the invoke cache-key property is a string, you could setup a variable, for example, cacheKey, to some value and then in the invoke policy reference it in the invoke policy using $(cacheKey)
. That variable could be in the API as an api property, or you could setup an assembly created variable using either a set-variable policy or either GatewayScript or XSLT policy code. Then that variable can be referenced by whichever policies that want to use the same value.
Best Regards,
Steve
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
Original Message:
Sent: Sun February 25, 2024 09:49 PM
From: santhoshkumar surisetty
Subject: How to read Cache Variable which is set on invoke
I set cache variable name /key name on invoke policy , i would like to read the variable through XSLT/Gateway script in APIConnect as i want to use this variable different operation or API. Could you please suggest on it
------------------------------
santhoshkumar surisetty
------------------------------