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
object:
  metadata:
    annotations: {}
    labels:
      ves.io/app_type: bookinfo
    name: productpage
    namespace: documentation
    uid: 69f6044e-16df-47af-8ab9-85ebb857ab62
  spec:
    gcSpec:
      advertiseOnPublicDefaultVip: {}
      defaultRoutePools:
      - 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: {}
      routes: []
      wafExclusionRules: []
  systemMetadata:
    creationTimestamp: "2020-10-19T09:49:27.959637Z"
    creatorClass: examplesvc
    creatorId: examplesvc
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: e07de873cf77a0e:e07de873cf77a0e:0:1
    uid: 69f6044e-16df-47af-8ab9-85ebb857ab62
resourceVersion: "803"
spec:
  advertiseOnPublicDefaultVip: {}
  defaultRoutePools:
  - 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: {}
  routes: []
  wafExclusionRules: []
status: []
systemMetadata:
  creationTimestamp: "2020-10-19T09:49:27.959637Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 69f6044e-16df-47af-8ab9-85ebb857ab62

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build185306297_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: Mon, 19 Oct 2020 09:49:27 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "productpage",
      "namespace": "documentation",
      "uid": "69f6044e-16df-47af-8ab9-85ebb857ab62",
      "labels": {
        "ves.io/app_type": "bookinfo"
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "69f6044e-16df-47af-8ab9-85ebb857ab62",
      "creation_timestamp": "2020-10-19T09:49:27.959637Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc",
      "creator_id": "examplesvc",
      "creator_cookie": "",
      "trace_info": "e07de873cf77a0e:e07de873cf77a0e:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_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"
                  },
                  "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
          }
        ],
        "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": [
        ],
        "view_internal": null,
        "host_name": "",
        "dns_info": [
        ],
        "state": "VIRTUAL_HOST_READY",
        "auto_cert_state": "AutoCertDisabled",
        "auto_cert_info": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "803",
  "metadata": {
    "name": "productpage",
    "namespace": "documentation",
    "labels": {
      "ves.io/app_type": "bookinfo"
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "69f6044e-16df-47af-8ab9-85ebb857ab62",
    "creation_timestamp": "2020-10-19T09:49:27.959637Z",
    "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"
              },
              "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
      }
    ],
    "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": [
    ],
    "host_name": "",
    "dns_info": [
    ],
    "state": "VIRTUAL_HOST_READY",
    "auto_cert_state": "AutoCertDisabled",
    "auto_cert_info": null
  },
  "status": [
  ]
}