Reputation: 337
I am trying to fetch information in WildFly10 using its HTTP Management API.
I want to perform following operations :
Find status of server
http://localhost:9990/management?operation=attribute&name=server-state
Output : "running"
Find status of a deployed application
http://localhost:9990/management/deployment/test.war?operation=attribute&name=status
Output : "OK"
Deploy/Undeploy/Redeploy an application.
I have the URL for first two (where attribute is used) , but I am unable to find correct URL for the last two (where operation is used).
I can see the operations listed in another tab beside attributes in the UI. It may be similar, but I could not figure out the correct usage.
Any help/direction?
Upvotes: 0
Views: 1392
Reputation: 3527
You are changing the server state for 3. thus those are POST and not GET methods. Please take a look at https://docs.jboss.org/author/display/WFLY/The+HTTP+management+API
Upvotes: 2