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
resourceVersion: "1070"
spec:
  vsiteRefs: []
status: []
systemMetadata:
  creationTimestamp: "2021-03-31T08:30:44.372508Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: f488ba56-fd64-49e6-ba33-72a85d4b5649

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_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: 766
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:30:44 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1070",
  "metadata": {
    "name": "virtual-k8s-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "f488ba56-fd64-49e6-ba33-72a85d4b5649",
    "creation_timestamp": "2021-03-31T08:30:44.372508Z",
    "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": [
  ]
}