ves-io-schema-app_firewall-API-Replace

Examples of replacing app_firewall

Usecase:

Replace app-firewall-1

Request using vesctl:

vesctl configuration replace app_firewall -i app_firewall.yaml

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

metadata:
  name: app-firewall-1
  namespace: documentation
spec:
  blocking: null
  defaultBotSetting: null
  defaultDetectionSettings: null

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"app-firewall-1","namespace":"documentation"},"spec":{"blocking":null,"defaultDetectionSettings":null,"defaultBotSetting":null}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/app_firewalls/app-firewall-1'

curl response:

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

{

}