ves-io-schema-views-aws_tgw_site-API-Replace

Examples of replacing awstgwsite

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 awstgwsite.yaml has following contents (awstgwsite.ReplaceRequest):

metadata:
  name: tgw-site1
  namespace: documentation
spec:
  awsParameters:
    existingTgw:
      tgwAsn: 64500
      tgwId: tgw-a2345678901234567
      volterraSiteAsn: 64501
    instanceType: a1.xlarge
    noInsideStaticRoutes: {}
    noOutsideStaticRoutes: {}
    nodesPerAz: 3
    sshKey: ssh-rsa AAAAB..
    vpcId: vpc-a2345678901234567
  tgwSecurity:
    noForwardProxyPolicy: {}
    noNetworkPolicy: {}
  vpcAttachments:
    vpcList:
    - vpcId: vpc-a2345678901234567

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"tgw-site1","namespace":"documentation"},"spec":{"awsParameters":{"vpcId":"vpc-a2345678901234567","existingTgw":{"tgwId":"tgw-a2345678901234567","tgwAsn":64500,"volterraSiteAsn":64501},"instanceType":"a1.xlarge","sshKey":"ssh-rsa AAAAB..","nodesPerAz":3,"noInsideStaticRoutes":{},"noOutsideStaticRoutes":{}},"vpcAttachments":{"vpcList":[{"vpcId":"vpc-a2345678901234567"}]},"tgwSecurity":{"noForwardProxyPolicy":{},"noNetworkPolicy":{}}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build823219857_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/aws_tgw_sites/tgw-site1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 23 Sep 2020 09:54:12 GMT
Vary: Accept-Encoding

{

}