ves-io-schema-network_firewall-API-Replace

Examples of replacing network_firewall

Usecase:

Replace network-firewall-1

Request using vesctl:

vesctl configuration replace network_firewall -i network_firewall.yaml

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

metadata:
  name: network-firewall-1
  namespace: documentation
spec:
  fastAclSet:
  - kind: fast_acl_set
    name: fast-acl-set-1
  forwardProxyPolicySet:
  - kind: service_policy_set
    name: proxy-2
  networkPolicySet:
  - kind: network_policy_set
    name: policy-2

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"network-firewall-1","namespace":"documentation"},"spec":{"networkPolicySet":[{"kind":"network_policy_set","name":"policy-2"}],"forwardProxyPolicySet":[{"kind":"service_policy_set","name":"proxy-2"}],"fastAclSet":[{"kind":"fast_acl_set","name":"fast-acl-set-1"}]}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/network_firewalls/network-firewall-1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Fri, 15 May 2020 10:52:48 GMT
Vary: Accept-Encoding

{

}