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: "531"
spec:
  siteLocal: {}
  syslog:
    syslogRfc5424: 10485760
    udpServer:
      port: 514
      serverName: syslog.example.com
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:03:24.647843810Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 81f9a749-3668-4630-9c0d-ffaa94dfc3e5

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_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, 25 Aug 2021 09:03:24 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "531",
  "metadata": {
    "name": "syslog",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "81f9a749-3668-4630-9c0d-ffaa94dfc3e5",
    "creation_timestamp": "2021-08-25T09:03:24.647843810Z",
    "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": [
  ]
}