ves-io-schema-log_receiver-API-Get

Examples of getting log_receiver

Usecase:

Get syslog log receiver created in previous example.

Request using vesctl:

vesctl configuration get log_receiver syslog --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: syslog
  namespace: documentation
referringObjects: []
resourceVersion: "506"
spec:
  siteLocal: {}
  syslog:
    syslogRfc5424: 10485760
    udpServer:
      port: 514
      serverName: syslog.example.com
status: []
systemMetadata:
  creationTimestamp: "2021-07-14T08:07:31.789831330Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 944856f6-16f3-4844-8507-27fbb85f172c

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/log_receivers/syslog?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 912
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:07:31 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "506",
  "metadata": {
    "name": "syslog",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "944856f6-16f3-4844-8507-27fbb85f172c",
    "creation_timestamp": "2021-07-14T08:07:31.789831330Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "syslog": {
      "udp_server": {
        "server_name": "syslog.example.com",
        "port": 514
      },
      "syslog_rfc5424": 10485760
    },
    "site_local": {

    }
  },
  "status": [
  ],
  "referring_objects": [
  ]
}