ves-io-schema-waf_rules-CustomAPI-VirtualHostWafRulesStatus

Examples of performing waf_rules CustomAPI VirtualHostWafRulesStatus

Usecase:

Perform VirtualHostWafRulesStatus on waf_rules

Request:

Request using vesctl:

vesctl request rpc waf_rules.CustomAPI.VirtualHostWafRulesStatus -i request.yaml --uri /public/namespaces/namespace-literal/waf_rules/virtual_host/status/name-literal --http-method GET

where file request.yaml has following contents:

{}

vesctl yaml response:

wafRulesStatus: []

Request using curl:

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

curl response:

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

{
  "waf_rules_status": [
  ]
}