ves-io-schema-network_firewall-API-Replace
On This Page:
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:
name: fast-acl-set-2
forwardProxyPolicySet:
name: policy-2
networkPolicySet:
name: policy-1
vesctl yaml response: None
Request using curl:
curl -X 'PUT' -d '{"metadata":{"name":"network-firewall-1","namespace":"documentation"},"spec":{"networkPolicySet":{"name":"policy-1"},"forwardProxyPolicySet":{"name":"policy-2"},"fastAclSet":{"name":"fast-acl-set-2"}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_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: Mon, 22 Feb 2021 15:44:23 GMT
Vary: Accept-Encoding
{
}