ves-io-schema-views-aws_tgw_site-CustomAPI-SetTGWInfo
Examples of performing views_aws_tgw_site CustomAPI SetTGWInfo
Usecase:
Configure AWS TGW Site Information, after site is provisioned
Request:
Request using vesctl:
vesctl request rpc views_aws_tgw_site.CustomAPI.SetTGWInfo -i request.yaml --uri /public/namespaces/default/aws_tgw_site/my-site/set_tgw_info --http-method POST
where file request.yaml has following contents:
name: my-site
namespace: system
tgwInfo:
privateIps:
- 2.2.2.2
publicIps:
- 1.1.1.1
tgwId: tgw-12345678
vpcId: vpc-12345678
vesctl yaml response:
{}
Request using curl:
curl -X 'POST' -d '{"namespace":"system","name":"my-site","tgw_info":{"tgw_id":"tgw-12345678","vpc_id":"vpc-12345678","public_ips":["1.1.1.1"],"private_ips":["2.2.2.2"]}}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/default/aws_tgw_site/my-site/set_tgw_info'
curl response:
HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:14:24 GMT
Vary: Accept-Encoding
{
}