Details
Description
During the investigation of MXS-5244, I noticed that it's not possible to create a nosqlprotocol listener without passing all of the nested parameters as a single JSON object.
$ maxctrl create listener RW-Split-Router MongoDB-Listener-2 5556 protocol=nosqlprotocol nosqlprotocol.user=nosql_admin nosqlprotocol.password=123456
|
Error: Server at http://127.0.0.1:8989 responded with 400 Bad Request to `POST listeners`
|
{
|
"errors": [
|
{
|
"detail": "listener: The parameter 'nosqlprotocol.user' is unrecognized."
|
},
|
{
|
"detail": "listener: The parameter 'nosqlprotocol.password' is unrecognized."
|
}
|
]
|
}
|
The following command works:
$ maxctrl create listener RW-Split-Router MongoDB-Listener-2 5556 protocol=nosqlprotocol 'nosqlprotocol={"user":"nosql_admin","password": "123456"}'
|
OK
|