ves-io-schema-waf-CustomAPI-VirtualHostWafStatus

Examples of performing waf CustomAPI VirtualHostWafStatus

Usecase:

Perform VirtualHostWafStatus on waf

Request:

Request using vesctl:

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

where file request.yaml has following contents:

{}

vesctl yaml response:

wafStatus: []

Request using curl:

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

curl response:

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

{
  "waf_status": [
  ]
}