本文档说明用户可以通过REST对WildFly服务器执行某些操作:https://docs.jboss.org/author/display/WFLY10/The%20HTTP%20management%20API.html然而,没有关于如何添加/删除/读取系统属性的示例。我不知道HTTP主体如何查找这些调用。
以下StackOverflow问题的答案表明示例中使用的SimpleOperation类实际上并不存在:Wildfly 10 management Rest API
我想做如下操作:
/system-property=BLA:remove
/system-property=BLA:add(value="1,2,3,4")
并阅读它。
我如何通过REST和WildFly HTTP管理API执行这些操作?理想情况下,我会使用Java API(如果有)。
1条答案
按热度按时间ve7v8dk21#
使用
org.wildfly.core:wildfly-controller-client
API,您可以执行以下操作:您也可以使用REST API,但是您需要有一种方法来执行摘要式身份验证。