Resource trigger resource
You can create resource trigger resources to detect the creation, deletion, or updating of a resource in WebSphere Automation and invoke an action as a result. Actions that can be invoked include email actions and webhook actions.
About the resource trigger resource
The resource trigger resource is a type of trigger
resource. To create a resource trigger resource, create a trigger resource and set the value
of the type parameter to resource. In addition, the
configuration parameter must define values for
resourceType and operation parameters.
Valid values for the resourceType parameter include:
actionassetbulletinfixinstallationinvestigationvulnerability*: wild card, matches any of the previously listed resource types
Valid values for the operation parameter include:
createupdatedelete*: wild card, matches any of the previously listed operations
Example JSON for resource trigger resource
{
"id": "085bedbc-5ea7-4157-8044-4201be81b4ec",
"name" : "My Resource Trigger",
"description" : "An example resource trigger",
"actionId" : "cc4175d9-9e3c-4236-8718-ec39aafe29c3",
"type": "resource",
"enabled": true,
"configuration": {
"resourceType": "vulnerability",
"operation": "create"
},
"condition": "$count(vulnerability.cves[cvssBaseScore > 9 ]) > 0",
"variableMappings": {
"someValue": "myHeaderValue",
"theId": "$asset.id",
"theData": "$asset.productName"
},
"created": "2018-01-30T13:00:00Z",
"createdBy": "j.doe@example.com",
"updated": "2018-01-30T14:00:00Z",
"updatedBy": "f.gains@example.com"
}