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:

errors: []
items:
- annotations: {}
  labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 7fb67d51-0345-4a38-a56e-6f24c52b4cd2

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/http_loadbalancers'

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage",
      "uid": "7fb67d51-0345-4a38-a56e-6f24c52b4cd2",
      "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": [
  ]
}