ves-io-schema-infraprotect-CustomEventAPI-ListEventsSummary

Examples of performing infraprotect CustomEventAPI ListEventsSummary

Usecase:

List simple events

Request:

Request using vesctl:

vesctl request rpc infraprotect.CustomEventAPI.ListEventsSummary -i request.yaml --uri /public/namespaces/system/infraprotect/events_summary --http-method GET

where file request.yaml has following contents:

namespace: system

vesctl yaml response:

events:
- id: "123"
  name: event_ddos_123

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/infraprotect/namespaces/system/infraprotect/events_summary?alert_id=&namespace=system'

curl response:

HTTP/1.1 200 OK
Content-Length: 83
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:48:48 GMT
Vary: Accept-Encoding

{
  "events": [
    {
      "id": "123",
      "name": "event_ddos_123"
    }
  ]
}