Dynamic name for KVM map

Not applicable

Hi,

Is it possible to use a reference variable for accessing a KVM map. I know we can use dynamic key names.

We are planning to use KVM for storing a large number of keys and are looking at sharding it with some logic since the limit of each map is 15MB(possibly that is enough)

Thanks,

Jaskaran

0 1 393
1 REPLY 1

Hi @jaskarangump,

I understand that you want to use dynamic mapIdentifier in KVM Operations policy

If you want to use dynamic KVM name to access, i suggest using KVM Management APIs with Javascript callout

With Javascript, you can use the below code

var myRequest = new Request();
myRequest.headers = {'Authorization': 'OAuth ' + accessToken};
myRequest.url = <Management_API_Endpoint>;

var exchange = httpClient.send(myRequest);
exchange.waitForComplete(1000);

You can also use otehr custom logic for naming mapIdentifier