ves-io-schema-virtual_k8s-API-Get

Examples of getting virtual_k8s

Usecase:

Get virtual-k8s-1

Request using vesctl:

vesctl configuration get virtual_k8s virtual-k8s-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: virtual-k8s-1
    namespace: documentation
    uid: 62d80bfd-c344-410a-ab0a-8b758eba4206
  spec:
    gcSpec:
      vsiteRefs: []
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:40.861272300Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 3dc69ea87653dfc9:3dc69ea87653dfc9:0:1
    uid: 62d80bfd-c344-410a-ab0a-8b758eba4206
resourceVersion: "670"
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/virtual_k8ss/virtual-k8s-1?response_format=0'

curl response:

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

{
  "object": {
    "metadata": {
      "name": "virtual-k8s-1",
      "namespace": "documentation",
      "uid": "62d80bfd-c344-410a-ab0a-8b758eba4206",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "62d80bfd-c344-410a-ab0a-8b758eba4206",
      "creation_timestamp": "2020-07-02T15:53:40.861272300Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "3dc69ea87653dfc9:3dc69ea87653dfc9:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "vsite_refs": [
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "670",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}