示例资源事件
为 WebSphere Automation使用的各种类型的资源提供了示例 JSON 代码。 您可以设置触发器以检测这些资源的创建,更新或删除,并定制使用这些资源中的信息的操作。
每种资源类型的第一个示例 JSON 用于创建该资源类型的新实例。 在以下示例中, <resourceType> 变量的有效值包括 action, asset, fix, installation, investigation, (安全性) bulletin, trigger和 vulnerability。
{
"type": "CREATE",
"<resourceType>": {
<JSON_that_describes_resource>
}
}
对于更新资源的事件, JSON 代码包含资源的新值以及原始值。
"type": "UPDATE",
"<resourceType>": {
<JSON_that_describes_updated_resource>
},
"originalVersion": {
<JSON_that_describes_original_resource>
}
}删除资源时, JSON 代码在结构上类似于用于创建事件的代码。
{
"type": "DELETE",
"<resourceType>": {
<JSON_that_describes_resource>
}
}