Zerto Virtual Replication APIs : Events API : Code Examples
  
Code Examples
For complete code examples, see “Code Samples”, on page 22.
/v1/events cURL Code Example
Retrieve the list of all events.
curl -D responseHeader -H "Content-Type: application/json" –H "Accept: application/json -H "x-zerto-session: 9UDQD6RG7YF33QJLWQXGJV8C453N277NA22P7FSNWVZCJTWCBRHQ" https://127.0.0.1:9669/v1/events
/v1/events with a filter cURL Code Example
Retrieve the list of events generated when VPGs are created.
curl -D responseHeader -H "Content-Type: application/json" –H "Accept: application/json -H "x-zerto-session: 9UDQD6RG7YF33QJLWQXGJV8C453N277NA22P7FSNWVZCJTWCBRHQ" https://127.0.0.1:9669/v1/events?eventType=CreateProtectionGroup
For more code examples, see “cURL Code”, on page 22.