ves-io-schema-views-http_loadbalancer-API-List

Examples of listing http_loadbalancer

Usecase:

List virtual-host

Request using vesctl:

vesctl configuration list http_loadbalancer --namespace documentation

vesctl yaml response:

items:
- labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 57a7318e-2182-42f5-8d07-a07742c8d3ac

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build823219857_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/http_loadbalancers'

curl response

HTTP/1.1 200 OK
Content-Length: 345
Content-Type: application/json
Date: Wed, 23 Sep 2020 09:54:13 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage",
      "uid": "57a7318e-2182-42f5-8d07-a07742c8d3ac",
      "labels": {
        "ves.io/app_type": "bookinfo"
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}