move messages from error queue to parent queue in Redhat Active MQ

Hi,

I would like to move messages from error queue to parent queue in Redhat Active MQ.

I want to automate Jolokia REST Url moveMessages(int,java.lang.String,java.lang.String,boolean) concept through ansible uri module but getting below mentioned error. I use POST and PUT method but getting error.

Please do let me know how to execute this url through ansible script.

// uri.yml

It says " Invalid JSON request".
Which seems to make sense, as you have set the HTTP method to POST,
but at the same time you have manually constructed the entire (GET)
request, and also didn't configure any 'body' parameter.
I'd start with supplying a properly formatted 'body' parameter first.
Although I'm not sure what that looks like in your case, because the
request URL seems to be using a comma (as opposed to an ampersand) to
separate the query parameters? This may well be my inexperience with
activemq however.

You might want to read up on the uri module docs, more specifically
https://docs.ansible.com/ansible/latest/modules/uri_module.html#examples.
You'll see that several of the option you use (such as HEADER_*) are
deprecated by now.

Dick