ves-io-schema-route-API-Get

Examples of getting route

Usecase:

Get route-1

Request using vesctl:

vesctl configuration get route route-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: route-1
    namespace: documentation
    uid: b9c45e81-00d1-40c4-828f-cc8993e9a8e5
  spec:
    gcSpec:
      routes: []
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:25.351148400Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 14ac193e9c743a0b:14ac193e9c743a0b:0:1
    uid: b9c45e81-00d1-40c4-828f-cc8993e9a8e5
resourceVersion: "471"
status: []

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 1210
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:25 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "route-1",
      "namespace": "documentation",
      "uid": "b9c45e81-00d1-40c4-828f-cc8993e9a8e5",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "b9c45e81-00d1-40c4-828f-cc8993e9a8e5",
      "creation_timestamp": "2020-07-02T15:53:25.351148400Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "14ac193e9c743a0b:14ac193e9c743a0b:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "routes": [
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "471",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}