Hello Michiel,
You're right, store to cache is not cluster wide, it can be shared to requests of a gateway only.
But the resteman is different between versions, for example, on gateway 8.4, you can only create new cwp, but cannot update it.
The example below is tested on gateway 9.2,
create or update cwp via restman
1. gen id
# mysql -e "select md5(uuid());"
+----------------------------------+
| md5(uuid()) |
+----------------------------------+
| 45f1f2e528887e575244b39ec6034f87 |
+----------------------------------+
2. call restman
method: PUT
URL: https://<gateway>:8443/restman/1.0/clusterProperties/45f1f2e528887e575244b39ec6034f87
Content-Type: application/xml
body:
<l7:ClusterProperty version="0" xmlns:l7="http://ns.l7tech.com/2010/04/gateway-management">
<l7:Name>cwpbymark</l7:Name>
<l7:Value>value</l7:Value>
</l7:ClusterProperty>
Regards,
Mark