Hello.
I am trying to create a KVM through input variables by header or by body, but in no case it is creating this variable, it only lets me if I put mapIdentifier and it always saves the same value,
I have created a JS and an AM to set the values, but even so it does not set them as name to create the KVM.
what I do first I extract the variables in two steps so that we can set it up
EV-ParseRequestBody
$.value $.keyother EV-ParseRequestFormBody
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> {kvm-entry.name} {private.kvm-entry.value}the next steep is the config KVM,
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> KV-CreateNewKVM false 300 environmentthis not working, then I try with other config of KVM
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> {kvm} KV-CreateNewKVM false 300 environmentthe curl
curl --location --request POST ‘https://{{host}}/kvm-admin/v1/organizations/{{org}}/environments/{{env}}’
–header ‘Content-Type: application/json’
–header ‘kvm: test2222’
–data-raw ’
{ “key” : “ed24e12820f2f900ae383b7cc4f2b31c402db1be”,
“value” : “http://tinyurl.com/38lwmlr,http://apigee.com”
}’
but the result is the same, it does not create anything.
and I have also tried this KVM and the following curl
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> KV-CreateNewKVM false 300 environmentthe curls
curl --location --request PUT ‘https://{{api}}/kvm-admin/v1/organizations/{{org}}/environments/{{env}}’
–header ‘Content-Type: application/json’
–header ‘kvm: poc’
–data-raw ‘{
“entry” : [ {
“key” : “key”,
“value” : “0”
} ],
“name” : “kvm-poc”
}’
but, not create nothing… ![]()
Any help?
thanks
![]()

