rvd
rvd

Reputation: 337

JBoss WildFly HTTP Management API Usage

I am trying to fetch information in WildFly10 using its HTTP Management API.

I want to perform following operations :

  1. Find status of server
    http://localhost:9990/management?operation=attribute&name=server-state Output : "running"

  2. Find status of a deployed application
    http://localhost:9990/management/deployment/test.war?operation=attribute&name=status Output : "OK"

  3. Deploy/Undeploy/Redeploy an application.

  4. Start/Shutdown/Restart the server.

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

Answers (1)

ehsavoie
ehsavoie

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

Related Questions