ves-io-schema-virtual_host-API-List

Examples of listing virtual_host

Usecase:

List virtual-host

Request using vesctl:

vesctl configuration list virtual_host --namespace documentation

vesctl yaml response:

items:
- labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 73600024-148c-44ad-bbd2-2567c746fc51

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_hosts'

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage",
      "uid": "73600024-148c-44ad-bbd2-2567c746fc51",
      "labels": {
        "ves.io/app_type": "bookinfo"
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}