ves-io-schema-views-tcp_loadbalancer-API-List

Examples of listing tcp_loadbalancer

Usecase:

List virtual-host

Request using vesctl:

vesctl configuration list tcp_loadbalancer --namespace documentation

vesctl yaml response:

items:
- labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: dccf4f39-7854-4a66-90d7-c9e1b5fa76e3

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 345
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:51:06 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage",
      "uid": "dccf4f39-7854-4a66-90d7-c9e1b5fa76e3",
      "labels": {
        "ves.io/app_type": "bookinfo"
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}