​
Select Service
ves-io-schema-views-origin_pool-API-Create
Published April 5, 2023 | Last modified July 21, 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": "ee90a966-4137-415c-8ad9-704a23f73ea9", "creation_timestamp": "2026-06-19T22:13:56.979176Z", "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-build1655461974_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: Fri, 19 Jun 2026 22:13:57 GMTVary: Accept-Encoding
{ "metadata": { "name": "productpage", "namespace": "documentation", "labels": { "ves.io/app_type": "bookinfo" }, "annotations": { }, "description": "", "disable": false }, "system_metadata": { "uid": "ee90a966-4137-415c-8ad9-704a23f73ea9", "creation_timestamp": "2026-06-19T22:13:56.979176Z", "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 }}