Zerto Virtual Replication APIs : Alerts API : Code Examples
  
Code Examples
For complete code examples, see “Code Samples”, on page 22.
/v1/alerts cURL Code Example
Retrieve the list of all alerts.
curl -D responseHeader -H "Content-Type: application/json" –H "Accept: application/json -H "x-zerto-session: 9UDQD6RG7YF33QJLWQXGJV8C453N277NA22P7FSNWVZCJTWCBRHQ" https://127.0.0.1:9669/v1/alerts
Dismiss a specific alert.
curl -D responseHeader -H "Content-Type: application/json" –H "Accept: application/json -H "x-zerto-session: 9UDQD6RG7YF33QJLWQXGJV8C453N277NA22P7FSNWVZCJTWCBRHQ" https://127.0.0.1:9669/v1/alerts/d00ea07a-9317-4ab6-a609-0a5fcbb04680/dismiss -d ""
This cURL command does not return any response. The -d "" is required so that cURL uses the POST method with this API.
For more code examples, see “cURL Code”, on page 22.