​
Select Service
ves-io-schema-views-cdn_loadbalancer-API-Replace
Published April 5, 2023 | Last modified May 29, 2026
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 cdn_loadbalancer.yaml has following contents (cdn_loadbalancer.ReplaceRequest):
RequestJSON:
{ "metadata": { "name": "productpage", "namespace": "documentation", "labels": { "ves.io/app_type": "bookinfo" } }, "spec": { "domains": [ "www.bookinfo.com" ], "https": { "tls_cert_options": { "tls_cert_params": { "tls_config": { "default_security": {} }, "certificates": [ { "name": "cert1" } ], "no_mtls": {} } } }, "origin_pool": { "public_name": { "dns_name": "lilac.cloud", "refresh_interval": 10 }, "no_tls": {}, "origin_servers": [ { "public_ip": { "ip": "1.1.1.1" } }, { "public_name": { "dns_name": "lilaccdn.net", "refresh_interval": 10 } } ] }, "default_cache_action": {} }}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":{"tls_cert_options":{"tls_cert_params":{"tls_config":{"default_security":{}},"certificates":[{"name":"cert1"}],"no_mtls":{}}}},"origin_pool":{"public_name":{"dns_name":"lilac.cloud","refresh_interval":10},"no_tls":{},"origin_servers":[{"public_ip":{"ip":"1.1.1.1"}},{"public_name":{"dns_name":"lilaccdn.net","refresh_interval":10}}]},"default_cache_action":{}}}' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build1414723615_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/cdn_loadbalancers/productpage'curl response:
HTTP/1.1 200 OKContent-Length: 4Content-Type: application/jsonDate: Mon, 13 Apr 2026 02:02:12 GMTVary: Accept-Encoding
{
}