ves-io-schema-infraprotect-CustomEventDetailsAPI-ListEventDetails

Examples of performing infraprotect CustomEventDetailsAPI ListEventDetails

Usecase:

List all event details

Request:

Request using vesctl:

vesctl request rpc infraprotect.CustomEventDetailsAPI.ListEventDetails -i request.yaml --uri /public/namespaces/system/infraprotect/event/1071458f-5b70-44f0-be8c-e8c6dbf51afa/details --http-method GET

where file request.yaml has following contents:

namespace: system

vesctl yaml response:

details:
- creator: user1
  description: Test description
  id: 04ca8d78-cf06-4d38-b180-5e2b52dbe6bb
  time: "2022-01-12T14:48:49.869216Z"
  title: Test title

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/event/1071458f-5b70-44f0-be8c-e8c6dbf51afa/details?event_id=&namespace=system'

curl response:

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

{
  "details": [
    {
      "id": "04ca8d78-cf06-4d38-b180-5e2b52dbe6bb",
      "title": "Test title",
      "description": "Test description",
      "creator": "user1",
      "time": "2022-01-12T14:48:49.869216Z"
    }
  ]
}