{ "actionTemplate": { "ansibletower": { "provisioning": true, "jobTemplateId": "<provisioning ansible tower job template Id>", "outputResolver": [ { "returnType": "json", "correlationID": "{{<Task Name>::$..instance.vm_name}}_{{<TaskName>::$..instance.uuid}}", "resourceType": "vim.VirtualMachine", "additionalKeys": [ { "keyName": "uuid", "pattern": "{{<TaskName>::$..instance.uuid}}" } ] } ], "variables": [ { "name": "vm_name", "value": "functional(_configInfo){ if (_configInfo && _configInfo.vm_name){return_configInfo.vm_name} else {return '' }}(${_configINFO})" } ], //Define the delete SOI action inside the otherActions field. "otherActions": { // Place where other actions can be defined like deleting, and editing SOI. "delete": { "jobTemplateId": "<delete ansible tower job template Id>", "input": { // Define input variables mapping inside input tag "variables": [ // Varibles required by jobTemplateId/Playbook { "name": "uuid", "value": "function(r){p = r.trackingInfo.params;f = p.filter(a => a.correlationId);return f.length?f[0].correlationId:''}(${_resourceInfo})" } ] }, "output": {} // Define output variables mapping } } } } } }