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:
- annotations: {}
  labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 6111c1fd-d0e8-46b9-9530-21f15cf0b116

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

curl response

HTTP/1.1 200 OK
Content-Length: 482
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:30:43 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage",
      "uid": "6111c1fd-d0e8-46b9-9530-21f15cf0b116",
      "description": "",
      "disabled": false,
      "labels": {
        "ves.io/app_type": "bookinfo"
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}