​
Select Service
ves-io-schema-tunnel-API-Replace
Published April 5, 2023 | Last modified October 2, 2026
Examples of replacing tunnel
Usecase:
Replace tunnel-1
Request using vesctl:
vesctl configuration replace tunnel -i tunnel.yaml
where file tunnel.yaml has following contents (tunnel.ReplaceRequest):
RequestJSON:
{ "metadata": { "name": "tunnel-1", "namespace": "system" }, "spec": { "local_ip": { "ip_address": { "ip_address": { "ipv4": { "addr": "192.168.0.10" } }, "virtual_network_type": { "public": {} } } }, "remote_ip": { "ip": { "ipv4": { "addr": "192.168.0.10" } } }, "params": { "ipsec": { "ipsec_psk": { "clear_secret_info": { "url": "string://\u003cbase64\u003e" } } } } }}vesctl yaml response: None
Request using curl:
curl -X 'PUT' -d '{"metadata":{"name":"tunnel-1","namespace":"system"},"spec":{"local_ip":{"ip_address":{"ip_address":{"ipv4":{"addr":"192.168.0.10"}},"virtual_network_type":{"public":{}}}},"remote_ip":{"ip":{"ipv4":{"addr":"192.168.0.10"}}},"params":{"ipsec":{"ipsec_psk":{"clear_secret_info":{"url":"string://\u003cbase64\u003e"}}}}}}' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build3348201650_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/tunnels/tunnel-1'curl response:
HTTP/1.1 200 OKContent-Length: 4Content-Type: application/jsonDate: Mon, 28 Sep 2026 04:30:32 GMTVary: Accept-Encoding
{
}