ves-io-schema-views-aws_vpc_site-API-Replace

Examples of replacing awsvpcsite

Usecase:

Replace vpc-site1 to modify Network Policy

Request using vesctl:

vesctl configuration replace aws_vpc_site -i aws_vpc_site.yaml

where file awsvpcsite.yaml has following contents (awsvpcsite.ReplaceRequest):

metadata:
  name: vpc-site1
  namespace: system
spec:
  logsStreamingDisabled: {}
  voltstackCluster:
    activeNetworkPolicies:
      networkPolicies:
      - name: unit-creds-views-aws-test
        namespace: system
    forwardProxyAllowAll: {}
    noGlobalNetwork: {}
    noOutsideStaticRoutes: null

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"vpc-site1","namespace":"system"},"spec":{"voltstackCluster":{"activeNetworkPolicies":{"networkPolicies":[{"namespace":"system","name":"unit-creds-views-aws-test"}]},"forwardProxyAllowAll":{},"noOutsideStaticRoutes":null,"noGlobalNetwork":{}},"logsStreamingDisabled":{}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/aws_vpc_sites/vpc-site1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 12 May 2021 11:19:04 GMT
Vary: Accept-Encoding

{

}