Our goal is to provide RESTful access to a JBoss Application Server 5.x
Document, explain, blog, experiment, test-drive, have fun and spread the word :-)
Usage:
jboss-admin-rest/
server/
... [More]
Get general information of the running server
------------------------------------------------------------------------------------
logs/{name}
@GET
get the {name} log
curl -v http://localhost:8080/jboss-admin-rest/logs/{boot, server}
-or a specific log-
curl -v http://localhost:8080/jboss-admin-rest/logs/server.2009-06-11
logs/{name}[?type={type}]
@GET
get the {name} log filtered by {type}
curl -v http://localhost:8080/jboss-admin-rest/logs/server[?type={all,debug,error,fatal,info,warn}]
------------------------------------------------------------------------------------
deployments/
@GET
get a list of *all* deployments of *all* types
curl -v http://localhost:8080/jboss-admin-rest/deployments/
@POST
create a new deployment
curl -v -F "name=@./DebugServlet.war;type=application/war" http://localhost:8080/jboss-admin-rest/deployments/
deployments/{type}
@GET
get a list of deployments of {type}
curl -v http://localhost:8080/jboss-admin-rest/deployments/{war,ear,car,ejb2x,ejb3x,rar,par,sar,beans,bundle,spring}
deployments/{type}/{name}
@GET
get information for deployment with {name} of {type}
curl -v http://localhost:8080/jboss-admin-rest/deployments/war/DebugServlet.war
@DELETE
delete deployment of {name} with {type}
curl -v -X DELETE http://localhost:8080/jboss-admin-rest/deployments/war/DebugServlet.war
@PUT
update deployment of {name} and {type} (currently handles a start/stop/redeploy requests)
curl -v -X PUT --data-ascii "start" -H "Content-Type: application/xml" http://localhost:8080/jboss-admin-rest/deployments/war/DebugServlet.war
-or-
curl -v -X PUT --data-ascii "stop" -H "Content-Type: application/xml" http://localhost:8080/jboss-admin-rest/deployments/war/DebugServlet.war
------------------------------------------------------------------------------------
components/
@GET
get a list of *all* components of *all* types
curl -v http://localhost:8080/jboss-admin-rest/components/
@POST
create a new component
curl -v -F "name=@./postgres-ds.xml;type=application/xml" http://localhost:8080/jboss-admin-rest/components/
components/{type}
@GET
get a list of components of {type}
curl -v http://localhost:8080/jboss-admin-rest/components/{DataSource,ConnectionFactory,JMSDestination,MBean,MCBean}
components/{type}/{subtype}
@GET
get a list of components of {type} and {subtype}
curl -v http://localhost:8080/jboss-admin-rest/components/DataSource/LocalTx
components/{type}/{subtype}?name={name}
@GET
get information for component with {name} of {type} and {subtype}
curl -v http://localhost:8080/jboss-admin-rest/components/DataSource/LocalTx?name=PostgresDS
@DELETE
delete component of {name} with {type} and {subtype}
curl -v -X DELETE http://localhost:8080/jboss-admin-rest/components/DataSource/LocalTx?name=PostgresDS
@PUT
update deployment of {name} and {type} (currently handles a start/stop/redeploy requests)
curl -v -X PUT --data-ascii "start" -H "Content-Type: application/xml" http://localhost:8080/jboss-admin-rest/components/DataSource/LocalTx?name=PostgresDS
-or-
curl -v -X PUT --data-ascii "stop" -H "Content-Type: application/xml" http://localhost:8080/jboss-admin-rest/components/DataSource/LocalTx?name=PostgresDS [Less]