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
object:
  metadata:
    annotations: {}
    labels:
      ves.io/app_type: bookinfo
    name: productpage
    namespace: documentation
    uid: 0ade7c04-b3b1-466c-85e5-7f278cbb3607
  spec:
    gcSpec:
      advertiseOnPublicDefaultVip: {}
      dnsInfo: []
      domains:
      - www.bookinfo.com
      listenPort: 80
      originPools: []
      originPoolsWeights:
      - pool:
          name: ppage-route
          namespace: documentation
          tenant: acmecorp
  systemMetadata:
    creationTimestamp: "2020-09-16T10:51:05.938014200Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 545c4ad9a75b3e6:545c4ad9a75b3e6:0:1
    uid: 0ade7c04-b3b1-466c-85e5-7f278cbb3607
resourceVersion: "768"
spec:
  advertiseOnPublicDefaultVip: {}
  dnsInfo: []
  domains:
  - www.bookinfo.com
  listenPort: 80
  originPools: []
  originPoolsWeights:
  - pool:
      name: ppage-route
      namespace: documentation
      tenant: acmecorp
status: []
systemMetadata:
  creationTimestamp: "2020-09-16T10:51:05.938014200Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 0ade7c04-b3b1-466c-85e5-7f278cbb3607

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/productpage?response_format=0'

curl response:

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

{
  "object": {
    "metadata": {
      "name": "productpage",
      "namespace": "documentation",
      "uid": "0ade7c04-b3b1-466c-85e5-7f278cbb3607",
      "labels": {
        "ves.io/app_type": "bookinfo"
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "0ade7c04-b3b1-466c-85e5-7f278cbb3607",
      "creation_timestamp": "2020-09-16T10:51:05.938014200Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "545c4ad9a75b3e6:545c4ad9a75b3e6:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "domains": [
          "www.bookinfo.com"
        ],
        "listen_port": 80,
        "with_sni": false,
        "origin_pools": [
        ],
        "origin_pools_weights": [
          {
            "pool": {
              "tenant": "acmecorp",
              "namespace": "documentation",
              "name": "ppage-route"
            },
            "weight": 0
          }
        ],
        "advertise_on_public_default_vip": {

        },
        "view_internal": null,
        "host_name": "",
        "dns_info": [
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "768",
  "metadata": {
    "name": "productpage",
    "namespace": "documentation",
    "labels": {
      "ves.io/app_type": "bookinfo"
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "0ade7c04-b3b1-466c-85e5-7f278cbb3607",
    "creation_timestamp": "2020-09-16T10:51:05.938014200Z",
    "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,
    "origin_pools": [
    ],
    "origin_pools_weights": [
      {
        "pool": {
          "tenant": "acmecorp",
          "namespace": "documentation",
          "name": "ppage-route"
        },
        "weight": 0
      }
    ],
    "advertise_on_public_default_vip": {

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