ves-io-schema-views-tcp_loadbalancer-API-Get

Examples of getting tcp_loadbalancer

Usecase:

Get "productpage" tcp_loadbalancer that was created in previous example

Request using vesctl:

vesctl configuration get tcp_loadbalancer productpage --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
referringObjects: []
resourceVersion: "1969"
spec:
  advertiseOnPublicDefaultVip: {}
  dnsInfo: []
  domains:
  - www.bookinfo.com
  hashPolicyChoiceRoundRobin: {}
  listenPort: 80
  originPools: []
  originPoolsWeights:
  - endpointSubsets: {}
    pool:
      name: ppage-route
      namespace: documentation
      tenant: acmecorp
  retractCluster: {}
status: []
systemMetadata:
  creationTimestamp: "2022-01-12T14:51:55.013322600Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: f5105b3a-dec8-4082-b410-4d29816c8671

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:51:55 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1969",
  "metadata": {
    "name": "productpage",
    "namespace": "documentation",
    "labels": {
      "ves.io/app_type": "bookinfo"
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "f5105b3a-dec8-4082-b410-4d29816c8671",
    "creation_timestamp": "2022-01-12T14:51:55.013322600Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "domains": [
      "www.bookinfo.com"
    ],
    "listen_port": 80,
    "with_sni": false,
    "dns_volterra_managed": false,
    "origin_pools": [
    ],
    "origin_pools_weights": [
      {
        "pool": {
          "tenant": "acmecorp",
          "namespace": "documentation",
          "name": "ppage-route"
        },
        "weight": 0,
        "priority": 0,
        "endpoint_subsets": {
        }
      }
    ],
    "advertise_on_public_default_vip": {

    },
    "hash_policy_choice_round_robin": {

    },
    "idle_timeout": 0,
    "retract_cluster": {

    },
    "host_name": "",
    "dns_info": [
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}