Package org.zaproxy.clientapi.gen
Class Alert
- java.lang.Object
-
- org.zaproxy.clientapi.gen.Alert
-
public class Alert extends java.lang.ObjectThis file was automatically generated.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiResponseaddAlert(java.lang.String messageid, java.lang.String name, java.lang.String riskid, java.lang.String confidenceid, java.lang.String description, java.lang.String param, java.lang.String attack, java.lang.String otherinfo, java.lang.String solution, java.lang.String references, java.lang.String evidence, java.lang.String cweid, java.lang.String wascid)Add an alert associated with the given message ID, with the provided details.ApiResponsealert(java.lang.String id)Gets the alert with the given ID, the corresponding HTTP message can be obtained with the 'messageId' field and 'message' API methodApiResponsealertCountsByRisk(java.lang.String url, java.lang.String recurse)Gets a count of the alerts, optionally filtered as per alertsPerRiskApiResponsealerts(java.lang.String baseurl, java.lang.String start, java.lang.String count, java.lang.String riskid)Gets the alerts raised by ZAP, optionally filtering by URL or riskId, and paginating with 'start' position and 'count' of alertsApiResponsealertsByRisk(java.lang.String url, java.lang.String recurse)Gets a summary of the alerts, optionally filtered by a 'url'.ApiResponsealertsSummary(java.lang.String baseurl)Gets number of alerts grouped by each risk level, optionally filtering by URLApiResponsedeleteAlert(java.lang.String id)Deletes the alert with the given ID.ApiResponsedeleteAllAlerts()Deletes all alerts of the current session.ApiResponsenumberOfAlerts(java.lang.String baseurl, java.lang.String riskid)Gets the number of alerts, optionally filtering by URL or riskIdApiResponseupdateAlert(java.lang.String id, java.lang.String name, java.lang.String riskid, java.lang.String confidenceid, java.lang.String description, java.lang.String param, java.lang.String attack, java.lang.String otherinfo, java.lang.String solution, java.lang.String references, java.lang.String evidence, java.lang.String cweid, java.lang.String wascid)Update the alert with the given ID, with the provided details.ApiResponseupdateAlertsConfidence(java.lang.String ids, java.lang.String confidenceid)Update the confidence of the alerts.ApiResponseupdateAlertsRisk(java.lang.String ids, java.lang.String riskid)Update the risk of the alerts.
-
-
-
Constructor Detail
-
Alert
public Alert(ClientApi api)
-
-
Method Detail
-
alert
public ApiResponse alert(java.lang.String id) throws ClientApiException
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(java.lang.String baseurl, java.lang.String start, java.lang.String count, java.lang.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
-
alertsSummary
public ApiResponse alertsSummary(java.lang.String baseurl) throws ClientApiException
Gets number of alerts grouped by each risk level, optionally filtering by URL- Throws:
ClientApiException
-
numberOfAlerts
public ApiResponse numberOfAlerts(java.lang.String baseurl, java.lang.String riskid) throws ClientApiException
Gets the number of alerts, optionally filtering by URL or riskId- Throws:
ClientApiException
-
alertsByRisk
public ApiResponse alertsByRisk(java.lang.String url, java.lang.String recurse) throws ClientApiException
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
public ApiResponse alertCountsByRisk(java.lang.String url, java.lang.String recurse) throws ClientApiException
Gets a count of the alerts, optionally filtered as per alertsPerRisk- Throws:
ClientApiException
-
deleteAllAlerts
public ApiResponse deleteAllAlerts() throws ClientApiException
Deletes all alerts of the current session.- Throws:
ClientApiException
-
deleteAlert
public ApiResponse deleteAlert(java.lang.String id) throws ClientApiException
Deletes the alert with the given ID.- Throws:
ClientApiException
-
updateAlertsConfidence
public ApiResponse updateAlertsConfidence(java.lang.String ids, java.lang.String confidenceid) throws ClientApiException
Update the confidence of the alerts.- Throws:
ClientApiException
-
updateAlertsRisk
public ApiResponse updateAlertsRisk(java.lang.String ids, java.lang.String riskid) throws ClientApiException
Update the risk of the alerts.- Throws:
ClientApiException
-
updateAlert
public ApiResponse updateAlert(java.lang.String id, java.lang.String name, java.lang.String riskid, java.lang.String confidenceid, java.lang.String description, java.lang.String param, java.lang.String attack, java.lang.String otherinfo, java.lang.String solution, java.lang.String references, java.lang.String evidence, java.lang.String cweid, java.lang.String wascid) throws ClientApiException
Update the alert with the given ID, with the provided details.- Throws:
ClientApiException
-
addAlert
public ApiResponse addAlert(java.lang.String messageid, java.lang.String name, java.lang.String riskid, java.lang.String confidenceid, java.lang.String description, java.lang.String param, java.lang.String attack, java.lang.String otherinfo, java.lang.String solution, java.lang.String references, java.lang.String evidence, java.lang.String cweid, java.lang.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
-
-