ves-io-schema-log_receiver-API-Get
On This Page:
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
resourceVersion: "416"
spec:
siteLocal: {}
syslog:
syslogFormat: 512
udpServer:
port: 514
serverName: syslog.example.com
status: []
systemMetadata:
creationTimestamp: "2020-12-16T09:12:32.340049255Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
tenant: acmecorp
uid: 572f10d6-c0a5-44f2-9c12-ec1ad51e9be4
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build101377873_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: 876
Content-Type: application/json
Date: Wed, 16 Dec 2020 09:12:32 GMT
Vary: Accept-Encoding
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "416",
"metadata": {
"name": "syslog",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "572f10d6-c0a5-44f2-9c12-ec1ad51e9be4",
"creation_timestamp": "2020-12-16T09:12:32.340049255Z",
"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_format": 512
},
"site_local": {
}
},
"status": [
]
}