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: 6dc442d0-5f6f-49d6-9e31-9f40c0f37c4f

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

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage",
      "uid": "6dc442d0-5f6f-49d6-9e31-9f40c0f37c4f",
      "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": [
  ]
}