ves-io-schema-views-cdn_loadbalancer-API-Replace

Examples of replacing cdn_loadbalancer

Usecase:

Replace "productpage" cdn_loadbalancer to now support mTLS * Trusted CA parameter is added to TLS config

Request using vesctl:

vesctl configuration replace cdn_loadbalancer -i cdn_loadbalancer.yaml

where file cdnloadbalancer.yaml has following contents (cdnloadbalancer.ReplaceRequest):

metadata:
  labels:
    ves.io/app_type: bookinfo
  name: productpage
  namespace: documentation
spec:
  autoHostRewrite: {}
  defaultRoutePools:
  - pool:
      name: ppage-route
  domains:
  - www.bookinfo.com
  https:
    enablePathNormalize: {}
    tlsParameters:
      noMtls: {}
      tlsCertificates:
      - certificateUrl: string:///<Base64>
        privateKey:
          blindfoldSecretInfo:
            location: string:///<Base64>
      tlsConfig:
        defaultSecurity: {}

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"productpage","namespace":"documentation","labels":{"ves.io/app_type":"bookinfo"}},"spec":{"domains":["www.bookinfo.com"],"https":{"tlsParameters":{"tlsConfig":{"defaultSecurity":{}},"tlsCertificates":[{"certificateUrl":"string:///\u003cBase64\u003e","privateKey":{"blindfoldSecretInfo":{"location":"string:///\u003cBase64\u003e"}}}],"noMtls":{}},"enablePathNormalize":{}},"defaultRoutePools":[{"pool":{"name":"ppage-route"}}],"autoHostRewrite":{}}}' -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/cdn_loadbalancers/productpage'

curl response:

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

{

}