用:读资源描述你看到WAR:
"enabled" => {
"type" => BOOLEAN,
"description" => "Boolean indicating whether the deployment content is currently deployed in the runtime (or should be deployed in the runtime the next time the server starts.)",
"expressions-allowed" => false,
"nillable" => true,
"default" => false,
"access-type" => "read-only",
"storage" => "configuration"
},
由于访问类型=只读你的错误。你有另一场:
"status" => {
"type" => STRING,
"description" => "The current runtime status of a deployment. Possible status modes are OK, FAILED, and STOPPED. FAILED indicates a dependency is missing or a service could not start. STOPPED indicates that the deployment was not enabled or was manually stopped.",
所以我猜你想要的是你的战争已经启用=假,状态=停下来,你的战争是不会被删除。您可以通过使用一个得到这个:
:read-operation-names
{
"outcome" => "success",
"result" => [
"add",
"deploy",
"read-attribute",
"read-children-names",
"read-children-resources",
"read-children-types",
"read-operation-description",
"read-operation-names",
"read-resource",
"read-resource-description",
"redeploy",
"remove",
"undefine-attribute",
"undeploy",
"whoami",
"write-attribute"
]
}
在这种情况下,你使用:取消部署禁用应用程序和:部署启用它。这就是网络控制台的功能。