added
WAS: Email Notifications Upon Scan Completion
about 4 years ago by Lance Duvall
The Tenable.io Web Application Scanning v2 API now supports email notifications upon scan completion. You can configure email notifications when you create a scan configuration. Email notifications are sent upon scan completion for both on-demand and scheduled scans.
This update affects the following endpoints:
API Endpoint | Name | Change |
---|---|---|
POST /was/v2/configs | Create scan configuration | You can now provide a list of email addresses to send scan notifications to upon scan completion. |
PUT /was/v2/configs/{config_id} | Upsert scan configuration | You can now provide a list of email addresses to send scan notifications to upon scan completion. |
Example
You can create a scan configuration to send scan notifications to [email protected]
and [email protected]
by providing a notifications object with an array of email addresses in the request body parameters when you make a request to POST /was/v2/configs or PUT /was/v2/configs/{config_id}:
{
"target": "https://example4.com",
"name": "Example Scan",
"owner_id": "4dc05b61-8821-4280-be09-265ae01882b7",
"template_id": "b223f18e-5a94-4e02-b560-77a4a8246cd3",
"notifications": {
"emails": [
"[email protected]",
"[email protected]
]
}
}