ves-io-schema-views-aws_tgw_site-CustomAPI-SetTGWInfo

Examples of performing aws_tgw_site CustomAPI SetTGWInfo

Usecase:

Configure AWS TGW Site Information, after site is provisioned

Request:

Request using vesctl:

vesctl request rpc 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=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build3109416560_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' '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, 21 Mar 2024 14:08:33 GMT
Vary: Accept-Encoding

{

}