Hi,
I was wondering what is the correct way in wildfly 10 to execute the equivalent action of this HTTP POST as an HTTP GET from within the browser:
curl --digest -u user:password -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"address":["subsystem","naming"],"operation":"jndi-view","json.pretty":1}'
So, this POST request works fine and gives the the full jndi-tree.
If i do this:
http://localhost:9990/management/subsystem/naming?operation=jndi-view
i get
"java.lang.IllegalArgumentException: WFLYDMHTTP0005: Invalid operation 'jndi-view'"
If i do this (according to this post: Managing JBoss - WildFly using HTTP/JSON API):
http://localhost:9990/management/subsystem/naming?name=jndi-view
i get
{"binding" : null, "service" : {"remote-naming" : null}}
So, no actual content.
Is there a way to do this?
Cheers,
Daniel
with GET verb only basic operations are supported like read-attribute, read-resources and such.
no custom operations work with GET this was done as security precaution.
POST will work just fine for any custom operations