Read KVM into Javascript through KVM Operation Policy

Not applicable

Hello guys,

I'm trying to read a key-value map that I already have created, into a variable to be used in a JS policy. I read tons of related post about this issue, but I couldn't get it work so far.

This is what I did:

1 - Create a kVM named authuser with key/value api_user:value; api_key:value

2 - I created a KVM Operation policy to get those keys and values and assign them into a variables:

6394-screenshot-from-2018-02-05-15-12-11.png

3 - I tried to get this values from a JS policy

screenshot-from-2018-02-05-15-12-28.png

Problem is, am getting a null value for api user and key.

Solved Solved
0 1 2,638
1 ACCEPTED SOLUTION

You have specified the kvm key with a variable reference.

Try

<Parameter>api_user</Parameter>

View solution in original post

1 REPLY 1

You have specified the kvm key with a variable reference.

Try

<Parameter>api_user</Parameter>