Adding a URI to a KVM's name

Hi, 

I want  to create a KVM that stores a list of URIs that need special handling in a proxy. So when I try to create the KVM as follows:

{
    "encrypted"false,
    "entry": [
        {
            "name""/api",
            "value""ReqPreFlowPayloadLogging"
        }
    ],
    "name""URIBodyLoggingKVM"
}
 
I get the below response
{
    "code""keyvaluemap.service.keyvaluemap_entry_name_invalid",
    "message""KeyValueMap entry name /api is invalid",
    "contexts": []
}
 
Is there a way to put a URI in a KVM entry's Name?
 
Regards,
Hany
Solved Solved
0 1 139
1 ACCEPTED SOLUTION

I think, as you've discovered, "slash" is not valid for the name of a KVM entry. 

You would have to escape them or replace them. 

Like, replace all slash with underscore, or something like that. 

 

View solution in original post

1 REPLY 1

I think, as you've discovered, "slash" is not valid for the name of a KVM entry. 

You would have to escape them or replace them. 

Like, replace all slash with underscore, or something like that.