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:

metadata:
  annotations: {}
  labels: {}
  name: virtual-k8s-1
  namespace: documentation
referringObjects: []
resourceVersion: "1151"
spec:
  vsiteRefs: []
status: []
systemMetadata:
  creationTimestamp: "2021-07-14T08:08:58.713968100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: d32f0b79-6ec4-40c9-bbef-4f00559d7ff7

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/virtual_k8ss/virtual-k8s-1?response_format=0'

curl response:

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

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1151",
  "metadata": {
    "name": "virtual-k8s-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "d32f0b79-6ec4-40c9-bbef-4f00559d7ff7",
    "creation_timestamp": "2021-07-14T08:08:58.713968100Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "vsite_refs": [
    ],
    "default_flavor_ref": null
  },
  "status": [
  ],
  "referring_objects": [
  ]
}