ves-io-schema-infraprotect-CustomEventDetailsAPI-AddEventDetail

Examples of performing infraprotect CustomEventDetailsAPI AddEventDetail

Usecase:

Get a specific event

Request:

Request using vesctl:

vesctl request rpc infraprotect.CustomEventDetailsAPI.AddEventDetail -i request.yaml --uri /public/namespaces/system/infraprotect/event/b567775d-7be6-43fd-b7c6-1b7fd66773ab/details --http-method POST

where file request.yaml has following contents:

namespace: system

vesctl yaml response:

detail:
  creator: user1
  id: a3d36c1b-ce5a-4709-9a67-5742595c97ba

Request using curl:

curl -X 'POST' -d '{"namespace":"system"}' -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/b567775d-7be6-43fd-b7c6-1b7fd66773ab/details'

curl response:

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

{
  "detail": {
    "id": "a3d36c1b-ce5a-4709-9a67-5742595c97ba",
    "title": "",
    "description": "",
    "creator": "user1",
    "time": null
  }
}