ves-io-schema-waf_rule_list-API-Replace

Examples of replacing wafrulelist

Usecase:

Replace wafrulelist.

Request using vesctl:

vesctl configuration replace waf_rule_list -i waf_rule_list.yaml

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

metadata:
  name: object-1
  namespace: documentation
spec: {}

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"object-1","namespace":"documentation"},"spec":{}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/waf_rule_lists/object-1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:09:09 GMT
Vary: Accept-Encoding

{

}