​
Select Service
ves-io-schema-views-proxy-API-Replace
Published April 5, 2023 | Last modified May 17, 2026
Examples of replacing proxy
Usecase:
Replace "dynamic-http-proxy" Proxy by changing domains
Request using vesctl:
vesctl configuration replace proxy -i proxy.yaml
where file proxy.yaml has following contents (proxy.ReplaceRequest):
RequestJSON:
{ "metadata": { "name": "dynamic-http-proxy", "namespace": "documentation" }, "spec": { "dynamic_proxy": { "domains": [ "*.abc.com" ], "http_proxy": {}, "disable_dns_masquerade": {} }, "site_virtual_sites": { "advertise_where": [ { "virtual_site": { "virtual_site": { "namespace": "documentation", "name": "acmecorp-vsite" } }, "port": 8080 } ] }, "site_local_network": {}, "no_forward_proxy_policy": {}, "no_interception": {} }}vesctl yaml response: None
Request using curl:
curl -X 'PUT' -d '{"metadata":{"name":"dynamic-http-proxy","namespace":"documentation"},"spec":{"dynamic_proxy":{"domains":["*.abc.com"],"http_proxy":{},"disable_dns_masquerade":{}},"site_virtual_sites":{"advertise_where":[{"virtual_site":{"virtual_site":{"namespace":"documentation","name":"acmecorp-vsite"}},"port":8080}]},"site_local_network":{},"no_forward_proxy_policy":{},"no_interception":{}}}' -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/proxys/dynamic-http-proxy'curl response:
HTTP/1.1 200 OKContent-Length: 4Content-Type: application/jsonDate: Mon, 13 Apr 2026 02:02:50 GMTVary: Accept-Encoding
{
}