ves-io-schema-waf_rules-CustomAPI-Rules

Examples of performing waf_rules CustomAPI Rules

Usecase:

Perform Rules on waf_rules

Request:

Request using vesctl:

vesctl request rpc waf_rules.CustomAPI.Rules -i request.yaml --uri /public/namespaces/namespace-literal/waf_rules/rules --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

rules: []

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/namespace-literal/waf_rules/rules?namespace='

curl response:

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

{
  "rules": [
  ]
}