简体   繁体   English

获取 json 格式的 Jboss EAP 7.4 修复列表

[英]Get Jboss EAP 7.4 fix list in json format

is there any way to get a list of jboss EAP fix list in json format?有没有办法以 json 格式获取 jboss EAP 修复列表? or at least to get the latest fix pack - example 7.4.1.2 or so on.. I am trying to write a script to get regularly the latest fix version and i form on which servers it should be installed.或者至少要获得最新的修复包 - 例如 7.4.1.2 等等。我正在尝试编写一个脚本来定期获取最新的修复版本,并确定应该在哪些服务器上安装它。

thank you谢谢你

If somebody is also interested.. there is another way.如果有人也有兴趣..还有另一种方法。 This is the PHP code:这是 PHP 代码:

 //$ver="7.4"; example.. $arrver=array("7.4"=>0,"7.3"=>1,"7.2"=>2,"7.1"=>3,"7.0"=>4); $dom = new DOMDocument(); $data=""; libxml_use_internal_errors(true); $html=file_get_contents("https://access.redhat.com/articles/2332721"); $html=preg_replace('%<sup.*?</sup>%i', '', $html); $dom->loadHTML($html); $dom->preserveWhiteSpace = false; $tables = $dom->getElementsByTagName('table'); $rows = $tables->item($arrver[$ver])->getElementsByTagName('tr'); $i=0; foreach ($rows as $row) { $cols = $row->getElementsByTagName('td'); if (DateTime::createFromFormat('F j, Y', $cols->item(1)->nodeValue);== false) { $i++. if($i==1){ $data=$ver.".",str_replace(array("Update ","\n","\t"," "),"";$cols->item(0)->nodeValue) } } }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM