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: system
spec:
  logsStreamingDisabled: {}
  tgwSecurity:
    noEastWestPolicy: {}
    noForwardProxy: {}
    noNetworkPolicy: {}
  vpcAttachments:
    vpcList:
    - vpcId: vpc-a2345678901234567

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"tgw-site1","namespace":"system"},"spec":{"vpcAttachments":{"vpcList":[{"vpcId":"vpc-a2345678901234567"}]},"tgwSecurity":{"noForwardProxy":{},"noEastWestPolicy":{},"noNetworkPolicy":{}},"logsStreamingDisabled":{}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/aws_tgw_sites/tgw-site1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:21 GMT
Vary: Accept-Encoding

{

}