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

Examples of replacing aws_tgw_site

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

RequestJSON:

{
    "metadata": {
        "name": "tgw-site1",
        "namespace": "system"
    },
    "spec": {
        "aws_parameters": {
            "nodes_per_az": 2
        },
        "vpc_attachments": {
            "vpc_list": [
                {
                    "vpc_id": "vpc-a2345678901234567"
                }
            ]
        },
        "tgw_security": {
            "no_forward_proxy": {},
            "no_east_west_policy": {},
            "no_network_policy": {}
        },
        "logs_streaming_disabled": {}
    }
}

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"tgw-site1","namespace":"system"},"spec":{"aws_parameters":{"nodes_per_az":2},"vpc_attachments":{"vpc_list":[{"vpc_id":"vpc-a2345678901234567"}]},"tgw_security":{"no_forward_proxy":{},"no_east_west_policy":{},"no_network_policy":{}},"logs_streaming_disabled":{}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build243329498_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: Fri, 23 Sep 2022 13:17:00 GMT
Vary: Accept-Encoding

{

}