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:

errors: []
items:
- annotations: {}
  labels: {}
  name: waf-rules-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 73a8957b-80b6-49e1-8df5-37f46a17b482

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build186462253_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: 463
Content-Type: application/json
Date: Wed, 02 Jun 2021 10:23:04 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "waf-rules-1",
      "uid": "73a8957b-80b6-49e1-8df5-37f46a17b482",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}