ves-io-schema-views-aws_tgw_site-CustomAPI-SetVIPInfo

Examples of performing viewsawstgw_site CustomAPI SetVIPInfo

Usecase:

Configure AWS TGW Site VIP Information

Request:

Request using vesctl:

vesctl request rpc views_aws_tgw_site.CustomAPI.SetVIPInfo -i request.yaml --uri /public/namespaces/default/aws_tgw_site/my-site/set_vip_info --http-method POST

where file request.yaml has following contents:

name: my-site
namespace: system
vipParamsPerAz:
- azName: us-east-2a
  insideVip:
  - 1.1.1.1
  outsideVip:
  - 2.2.2.2

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"namespace":"system","name":"my-site","vipParamsPerAz":[{"insideVip":["1.1.1.1"],"outsideVip":["2.2.2.2"],"azName":"us-east-2a"}]}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build186462253_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/default/aws_tgw_site/my-site/set_vip_info'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 02 Jun 2021 10:22:37 GMT
Vary: Accept-Encoding

{

}