​
Select Service
ves-io-schema-views-origin_pool-API-Create
Published April 5, 2023 | Last modified June 4, 2026
Examples of creating origin_pool
Usecase:
Create "productpage" HTTP loadbalancer which supports HTTPS
Request using vesctl:
vesctl configuration create origin_pool -i origin_pool.yaml
where file origin_pool.yaml has following contents (origin_pool.CreateRequest):
RequestJSON:
{ "metadata": { "name": "productpage", "namespace": "documentation", "labels": { "ves.io/app_type": "bookinfo" } }, "spec": { "origin_servers": [ { "public_name": { "dns_name": "volterra.io", "refresh_interval": 10 } } ], "no_tls": {}, "port": 80 }}vesctl yaml response:
ResponseJSON:
{ "metadata": { "name": "productpage", "namespace": "documentation", "labels": { "ves.io/app_type": "bookinfo" }, "annotations": {}, "description": "", "disable": false }, "system_metadata": { "uid": "f8a670fa-edd3-4a78-9174-a2cc7cb9d295", "creation_timestamp": "2026-04-13T02:02:43.654849Z", "deletion_timestamp": null, "modification_timestamp": null, "initializers": null, "finalizers": [], "tenant": "acmecorp", "creator_class": "examplesvc", "creator_id": "examplesvc", "object_index": 0, "owner_view": null, "labels": {} }, "spec": { "origin_servers": [ { "public_name": { "dns_name": "volterra.io", "refresh_interval": 10 }, "labels": {} } ], "no_tls": {}, "port": 80, "healthcheck": [], "loadbalancer_algorithm": "ROUND_ROBIN", "endpoint_selection": "DISTRIBUTED", "advanced_options": null, "upstream_conn_pool_reuse_type": null }}Request using curl:
curl -X 'POST' -d '{"metadata":{"name":"productpage","namespace":"documentation","labels":{"ves.io/app_type":"bookinfo"}},"spec":{"origin_servers":[{"public_name":{"dns_name":"volterra.io","refresh_interval":10}}],"no_tls":{},"port":80}}' -H 'Content-Type: application/json' -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/origin_pools'curl response:
HTTP/1.1 200 OKContent-Length: 1060Content-Type: application/jsonDate: Mon, 13 Apr 2026 02:02:43 GMTVary: Accept-Encoding
{ "metadata": { "name": "productpage", "namespace": "documentation", "labels": { "ves.io/app_type": "bookinfo" }, "annotations": { }, "description": "", "disable": false }, "system_metadata": { "uid": "f8a670fa-edd3-4a78-9174-a2cc7cb9d295", "creation_timestamp": "2026-04-13T02:02:43.654849Z", "deletion_timestamp": null, "modification_timestamp": null, "initializers": null, "finalizers": [ ], "tenant": "acmecorp", "creator_class": "examplesvc", "creator_id": "examplesvc", "object_index": 0, "owner_view": null, "labels": { } }, "spec": { "origin_servers": [ { "public_name": { "dns_name": "volterra.io", "refresh_interval": 10 }, "labels": { } } ], "no_tls": {
}, "port": 80, "healthcheck": [ ], "loadbalancer_algorithm": "ROUND_ROBIN", "endpoint_selection": "DISTRIBUTED", "advanced_options": null, "upstream_conn_pool_reuse_type": null }}