Work in progress...
Make sure you have added the user using add-user.sh.
This is simple operation that is equivalent of running :read-resource with CLI in root directory
this is same as if you would run /host=master/server=server-01:read-attribute(name=server-state)
Following example will get us information from http connection in web subsystem including run-time attributes
This is the same as running /subsystem=undertow/server=default-server/http-listener=default:read-resource(include-runtime=true) in CLI
Labels:
None
3 Comments
comments.show.hideMay 13, 2014
Fai Gao
It doesn't work with wildfly8,throws error 401.I'm sure username and password are right.
[root@mdwarejboss2 ~]# curl --digest -L -D - http://localhost:9990/management --header "Content-Type: application/json" -d '
' -u admin
Enter host password for user 'admin':
HTTP/1.1 401 Unauthorized
Connection: keep-alive
WWW-Authenticate: Digest realm="ManagementRealm",domain="/management",nonce="mwCBX1T55lMNMTM5OTk3MjEzNzIwMQ+1Ikugn3KqVjq/94wxq3M=",opaque="00000000000000000000000000000000",algorithm=MD5
Content-Length: 77
Content-Type: text/html
Date: Tue, 13 May 2014 09:08:57 GMT
<html><head><title>Error</title></head><body>401 - Unauthorized</body></html>

Jul 14, 2015
Eugeun Pomnikov
Hi! How did you get this reponse?
I am interested in proxy-name and proxy-port attributes because I need to setup wildfly behind reverse proxy and I haven't found yet where I can put these ones. I made the same request to my wildfly instance and got response without any proxy-* attributes.
Jul 26, 2015
Eugeun Pomnikov
I finally found alternatives for proxy-name and proxy-port on the https://docs.jboss.org/author/display/WFLY8/Web+services+configuration. In general it is all you need but if you have an axis2 application (as I am) it won't work because of one has its own life.