0

I can stop my server group using the JBoss 7.2 CLI:

jboss_cli -c "/server-group=MyServerGroup :stop-servers(blocking=true)"

How can I do this over the HTTP REST API?

Uwe Keim
  • 2,420
  • 5
  • 30
  • 47
Matt Riley
  • 101
  • 2

1 Answers1

0

Stop servers:

curl --digest http://localhost:9990/management --header "Content-Type: application/json" -u user:password -d '{"address":[{"server-group":"MyServerGroup"}],"operation":"stop-servers","blocking":true}'

Start servers:

curl --digest http://localhost:9990/management --header "Content-Type: application/json" -u user:password -d '{"address":[{"server-group":"MyServerGroup"}],"operation":"start-servers"}'
Matt Riley
  • 101
  • 2