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:

errors: []
items:
- annotations: {}
  labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 9a56ed21-db32-4242-b114-ce2359b11944

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

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage",
      "uid": "9a56ed21-db32-4242-b114-ce2359b11944",
      "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": [
      ]
    }
  ],
  "errors": [
  ]
}