API , WildFly. API WildFly.
WildFly9 - . https://wildscribe.imtqy.com/Wildfly/9.0.0.Final/deployment/index.html
URL-, . .
:
http://localhost:9990/management/deployment/<deployment_name>
:
http://localhost:9990/management/host/<host_name>/server/<serer_name>/deployment/<deployment_name>
JSON ( , EAR ):
{
"content": [{
"hash": {
"BYTES_VALUE": "2gH7ddtUxsbzBJEJ/z4T1jYERRU="
}
}],
"enabled": true,
"enabled-time": 1468861076770,
"enabled-timestamp": "2016-07-18 18:57:56,770 CEST",
"name": "myapplication.ear",
"owner": null,
"persistent": true,
"runtime-name": "myapplication.app.ear",
"subdeployment": {
"myapplication.impl.jar": null,
"myapplication.web.war": null
},
"subsystem": null
}
curl:
curl --digest -D - http://localhost:9990/management --header "Content-Type: application/json" -d '{"operation":"read-resource", "include-runtime":"true", "address":["deployment","myapplication.app.ear"] }' -u user:password