Start and stop a JBoss EAP server with CURL command

Solution Verified - Updated -

Issue

  • How to start and stop JBOSS EAP using CURL command (REST API) ?
[jboss@server ~]$ curl --digest http://localhost/management --header "Content-Type:application/json" -u jboss:***** -d '{"address":[{"host":"host"},{"server":"server1"}],"operation":"start"}'
{
    "outcome" : "failed",
    "result" : null,
    "failure-description" : "WFLYCTL0031: No operation named 'start' exists at address [\n    (\"host\" => \"host\"),\n    (\"server\" => \"server1\")\n]",
    "rolled-back" : true

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.4.x
    • 7.2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content