{ "name": "Tenable.io Assets", "vendor_identifier": "Tenable.io", "version": "5.0", "type": "REST_EVENT", "event_type": [ "FIXED_ADDRESS_IPV4" ], "content_type": "application/json", "quoting":"XMLA", "headers": { "X-apikeys": "accessKey=[AK];secretKey=[SK]" }, "steps": [ { "operation": "NOP", "body": "${XC:DEBUG:{H:}}${XC:DEBUG:{E:}}${XC:DEBUG:{I:}}${XC:DEBUG:{L:}}${XC:DEBUG:{S:}}${XC:DEBUG:{P:}}${XC:DEBUG:{UT:}}" }, { "name": "stopIfDelete", "operation": "CONDITION", "condition": { "condition_type": "AND", "statements": [{"left": "${E:A:operation_type}","op": "==","right": "DELETE"}], "stop": true } }, { "name": "addAsset", "operation": "POST", "parse": "JSON", "transport": {"path": "import/assets"}, "body_list": ["{", "\"assets\": [{\"ipv4\": [\"${E:A:values{ipv4addr}}\"],", "\"mac_address\": [\"${E:A:values{mac}}\"]}],", "\"source\": \"Infoblox API\"", "}"] }, { "name": "CopyScan", "operation": "POST", "parse": "JSON", "transport": {"path": "scans/7a84b25e-23f7-0947-7484-db0ad2ee941e1fd867ec62eb9405/copy"} }, { "name": "updateScan", "operation": "PUT", "parse": "JSON", "transport": {"path": "scans/${P:A:uuid}"}, "body_list": ["{", "\"settings\": {\"name\": \"Infoblox outbound scan for ${E:A:values{ipv4addr}}\",\"text_targets\": \"${E:A:values{ipv4addr}}\"}", "}"] }, { "name": "LaunchScan", "operation": "POST", "parse": "JSON", "transport": {"path": "scans/${P:A:uuid}/launch"} } ] }