ves-io-schema-views-http_loadbalancer-API-Get

Examples of getting http_loadbalancer

Usecase:

Get "productpage" http_loadbalancer that was created in previous example

Request using vesctl:

vesctl configuration get http_loadbalancer productpage --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
referringObjects: []
resourceVersion: "1016"
spec:
  advertiseOnPublicDefaultVip: {}
  blockedClients: []
  ddosMitigationRules: []
  defaultRoutePools:
  - endpointSubsets: {}
    pool:
      name: ppage-route
      namespace: documentation
      tenant: acmecorp
  disableRateLimit: {}
  disableWaf: {}
  dnsInfo: []
  domains:
  - www.bookinfo.com
  https:
    tlsParameters:
      noMtls: {}
      tlsCertificates:
      - certificateUrl: string:///<Base64>
        privateKey:
          blindfoldSecretInfo:
            location: string:///<Base64>
      tlsConfig:
        defaultSecurity: {}
  noChallenge: {}
  roundRobin: {}
  routes: []
  servicePoliciesFromNamespace: {}
  trustedClients: []
  wafExclusionRules: []
status: []
systemMetadata:
  creationTimestamp: "2021-07-14T08:08:45.300904081Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: fcf316e0-b101-4cf9-9a87-f0643893970c

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:08:45 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1016",
  "metadata": {
    "name": "productpage",
    "namespace": "documentation",
    "labels": {
      "ves.io/app_type": "bookinfo"
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "fcf316e0-b101-4cf9-9a87-f0643893970c",
    "creation_timestamp": "2021-07-14T08:08:45.300904081Z",
    "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"
    ],
    "https": {
      "http_redirect": false,
      "add_hsts": false,
      "tls_parameters": {
        "tls_config": {
          "default_security": {

          }
        },
        "tls_certificates": [
          {
            "certificate_url": "string:///\u003cBase64\u003e",
            "private_key": {
              "blindfold_secret_info": {
                "decryption_provider": "",
                "store_provider": "",
                "location": "string:///\u003cBase64\u003e"
              },
              "blindfold_secret_info_internal": null,
              "secret_encoding_type": "EncodingNone"
            },
            "description": ""
          }
        ],
        "no_mtls": {

        }
      }
    },
    "advertise_on_public_default_vip": {

    },
    "default_route_pools": [
      {
        "pool": {
          "tenant": "acmecorp",
          "namespace": "documentation",
          "name": "ppage-route"
        },
        "weight": 0,
        "endpoint_subsets": {
        }
      }
    ],
    "routes": [
    ],
    "cors_policy": null,
    "disable_waf": {

    },
    "add_location": false,
    "no_challenge": {

    },
    "more_option": null,
    "user_identification": null,
    "disable_rate_limit": {

    },
    "malicious_user_mitigation": null,
    "waf_exclusion_rules": [
    ],
    "blocked_clients": [
    ],
    "trusted_clients": [
    ],
    "ddos_mitigation_rules": [
    ],
    "service_policies_from_namespace": {

    },
    "round_robin": {

    },
    "host_name": "",
    "dns_info": [
    ],
    "state": "VIRTUAL_HOST_READY",
    "auto_cert_state": "AutoCertDisabled",
    "auto_cert_info": null
  },
  "status": [
  ],
  "referring_objects": [
  ]
}