ves-io-schema-virtual_site-API-Get

Examples of getting virtual_site

Usecase:

Get virtual-site-1

Request using vesctl:

vesctl configuration get virtual_site virtual-site-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: virtual-site-1
  namespace: documentation
referringObjects: []
resourceVersion: "1206"
spec:
  siteSelector:
    expressions:
    - some-label
  siteType: CUSTOMER_EDGE
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:04:39.946503322Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 5ac2c81d-d25f-47e7-9de3-e63305b66cfa

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 857
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:39 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1206",
  "metadata": {
    "name": "virtual-site-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "5ac2c81d-d25f-47e7-9de3-e63305b66cfa",
    "creation_timestamp": "2021-08-25T09:04:39.946503322Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "site_selector": {
      "expressions": [
        "some-label"
      ]
    },
    "site_type": "CUSTOMER_EDGE"
  },
  "status": [
  ],
  "referring_objects": [
  ]
}