Hi ,
I am trying leverage the apigee-config-maven-plugin to create KVM in Apigee X and add values to it.
Here is the snippet.
{
“version”: “1.0”,
“envConfig”: {
“dev”: {
“targetServers”: [
{
“name”: “server1”,
“host”: “124.124.124.124”,
“isEnabled”: true,
“port”: 80
}
],
“kvms”: [
{
“name”: “POC”,
“encrypted”: true,
“entry”: [
{
“name”: “dev-tar”,
“value”: “123.123.123.123”
}
]
}
]
}
},
“orgConfig”: {
“org config”:“org config”
}
}
I tried to run this using maven plugin to create KVM entry and getting error as below
{
“error”: {
“code”: 400,
“message”: “Invalid JSON payload received. Unknown name "entry" at ‘key_value_map’: Cannot find field.”,
“status”: “INVALID_ARGUMENT”,
“details”: [
{
“@type”: “type.googleapis.com/google.rpc.BadRequest”,
“fieldViolations”: [
{
“field”: “key_value_map”,
“description”: “Invalid JSON payload received. Unknown name "entry" at ‘key_value_map’: Cannot find field.”
}
]
}
]
}
}
When I added KVM “POC” manually in the Apigee X environment and ran the same config using maven plugin then its skipping this config setup altogether.
Env KVM “POC” exists. Skipping.
195Retrieving config from /builds/<file_path>/edge.json
196No API scoped KVM config found.
what am I missing here ? Is using this plugin valid way to setup KVM values ?
** @ssvaidyanathan @strebel @dknezic **