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

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.