Package org.zaproxy.clientapi.gen
Class Alert
java.lang.Object
org.zaproxy.clientapi.gen.Alert
This file was automatically generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAlert(String messageid, String name, String riskid, String confidenceid, String description, String param, String attack, String otherinfo, String solution, String references, String evidence, String cweid, String wascid) Add an alert associated with the given message ID, with the provided details.Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API methodalertCountsByRisk(String url, String recurse) Gets a count of the alerts, optionally filtered as per alertsPerRiskGets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alertsGets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alertsalertsByRisk(String url, String recurse) Gets a summary of the alerts, optionally filtered by a 'url'.alertsSummary(String baseurl) Gets number of alerts grouped by each risk level, optionally filtering by URLdeleteAlert(String id) Deletes the alert with the given ID.deleteAlerts(String contextname, String baseurl, String riskid) Deletes all the alerts optionally filtered by URL which fall within the Context with the provided name, risk, or base URL.Deletes all alerts of the current session.numberOfAlerts(String baseurl, String riskid) Gets the number of alerts, optionally filtering by URL or riskIdupdateAlert(String id, String name, String riskid, String confidenceid, String description, String param, String attack, String otherinfo, String solution, String references, String evidence, String cweid, String wascid) Update the alert with the given ID, with the provided details.updateAlertsConfidence(String ids, String confidenceid) Update the confidence of the alerts.updateAlertsRisk(String ids, String riskid) Update the risk of the alerts.
-
Constructor Details
-
Alert
-
-
Method Details
-
alert
Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API method- Throws:
ClientApiException
-
alerts
public ApiResponse alerts(String baseurl, String start, String count, String riskid) throws ClientApiException Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alerts- Throws:
ClientApiException
-
alerts
public ApiResponse alerts(String baseurl, String start, String count, String riskid, String contextname) throws ClientApiException Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alerts- Throws:
ClientApiException
-
alertsSummary
Gets number of alerts grouped by each risk level, optionally filtering by URL- Throws:
ClientApiException
-
numberOfAlerts
Gets the number of alerts, optionally filtering by URL or riskId- Throws:
ClientApiException
-
alertsByRisk
Gets a summary of the alerts, optionally filtered by a 'url'. If 'recurse' is true then all alerts that apply to urls that start with the specified 'url' will be returned, otherwise only those on exactly the same 'url' (ignoring url parameters)- Throws:
ClientApiException
-
alertCountsByRisk
Gets a count of the alerts, optionally filtered as per alertsPerRisk- Throws:
ClientApiException
-
deleteAllAlerts
Deletes all alerts of the current session.- Throws:
ClientApiException
-
deleteAlerts
public ApiResponse deleteAlerts(String contextname, String baseurl, String riskid) throws ClientApiException Deletes all the alerts optionally filtered by URL which fall within the Context with the provided name, risk, or base URL.- Throws:
ClientApiException
-
deleteAlert
Deletes the alert with the given ID.- Throws:
ClientApiException
-
updateAlertsConfidence
public ApiResponse updateAlertsConfidence(String ids, String confidenceid) throws ClientApiException Update the confidence of the alerts.- Throws:
ClientApiException
-
updateAlertsRisk
Update the risk of the alerts.- Throws:
ClientApiException
-
updateAlert
public ApiResponse updateAlert(String id, String name, String riskid, String confidenceid, String description, String param, String attack, String otherinfo, String solution, String references, String evidence, String cweid, String wascid) throws ClientApiException Update the alert with the given ID, with the provided details.- Throws:
ClientApiException
-
addAlert
public ApiResponse addAlert(String messageid, String name, String riskid, String confidenceid, String description, String param, String attack, String otherinfo, String solution, String references, String evidence, String cweid, String wascid) throws ClientApiException Add an alert associated with the given message ID, with the provided details. (The ID of the created alert is returned.)- Throws:
ClientApiException
-