ves-io-schema-waf_rules-API-List

Examples of listing waf_rules

Usecase:

List waf-rules

Request using vesctl:

vesctl configuration list waf_rules --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: waf-rules-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 35db62c9-5920-4643-a1e9-38c38994f7ea

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/waf_ruless'

curl response

HTTP/1.1 200 OK
Content-Length: 307
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:51:12 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "waf-rules-1",
      "uid": "35db62c9-5920-4643-a1e9-38c38994f7ea",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}