ves-io-schema-log_receiver-API-Replace

Examples of replacing log_receiver

Usecase:

Replace syslog log receiver, to modify max message length.

Request using vesctl:

vesctl configuration replace log_receiver -i log_receiver.yaml

where file logreceiver.yaml has following contents (logreceiver.ReplaceRequest):

metadata:
  name: syslog
  namespace: documentation
spec:
  siteLocal: {}
  syslog:
    syslogRfc3164: 1024
    udpServer:
      port: 514
      serverName: syslog.example.com

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"syslog","namespace":"documentation"},"spec":{"syslog":{"udpServer":{"serverName":"syslog.example.com","port":514},"syslogRfc3164":1024},"siteLocal":{}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/log_receivers/syslog'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:29:17 GMT
Vary: Accept-Encoding

{

}