​
Select Service
ves-io-schema-views-aws_tgw_site-API-Replace
Published April 5, 2023 | Last modified May 20, 2026
Examples of replacing aws_tgw_site
Usecase:
Replace tgw-site1 to modify nodes per availability zone to 3
Request using vesctl:
vesctl configuration replace aws_tgw_site -i aws_tgw_site.yaml
where file aws_tgw_site.yaml has following contents (aws_tgw_site.ReplaceRequest):
RequestJSON:
{ "metadata": { "name": "tgw-site1", "namespace": "system" }, "spec": { "aws_parameters": { "aws_region": "us-east-1", "vpc_id": "vpc-a2345678901234567", "existing_tgw": { "tgw_id": "tgw-a2345678901234567", "tgw_asn": 64500, "volterra_site_asn": 64501 }, "instance_type": "a1.xlarge", "az_nodes": [ { "aws_az_name": "us-west-2a", "inside_subnet": { "existing_subnet_id": "subnet-a2345678901234567" }, "outside_subnet": { "existing_subnet_id": "subnet-b2345678901234567" }, "disk_size": 80 } ], "aws_cred": { "namespace": "system", "name": "unit-creds-views-aws-test" }, "ssh_key": "ssh-rsa AAAAB..", "nodes_per_az": 2 }, "vpc_attachments": { "vpc_list": [] }, "tgw_security": { "no_forward_proxy": {}, "no_east_west_policy": {}, "no_network_policy": {} }, "logs_streaming_disabled": {} }}vesctl yaml response: None
Request using curl:
curl -X 'PUT' -d '{"metadata":{"name":"tgw-site1","namespace":"system"},"spec":{"aws_parameters":{"aws_region":"us-east-1","vpc_id":"vpc-a2345678901234567","existing_tgw":{"tgw_id":"tgw-a2345678901234567","tgw_asn":64500,"volterra_site_asn":64501},"instance_type":"a1.xlarge","az_nodes":[{"aws_az_name":"us-west-2a","inside_subnet":{"existing_subnet_id":"subnet-a2345678901234567"},"outside_subnet":{"existing_subnet_id":"subnet-b2345678901234567"},"disk_size":80}],"aws_cred":{"namespace":"system","name":"unit-creds-views-aws-test"},"ssh_key":"ssh-rsa AAAAB..","nodes_per_az":2},"vpc_attachments":{"vpc_list":[]},"tgw_security":{"no_forward_proxy":{},"no_east_west_policy":{},"no_network_policy":{}},"logs_streaming_disabled":{}}}' -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/system/aws_tgw_sites/tgw-site1'curl response:
HTTP/1.1 200 OKContent-Length: 4Content-Type: application/jsonDate: Mon, 13 Apr 2026 02:01:50 GMTVary: Accept-Encoding
{
}