ves-io-schema-waf-API-List

Examples of listing waf

Usecase:

List waf

Request using vesctl:

vesctl configuration list waf --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: waf-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: f3e2c3d9-38c6-43a5-95d6-967dc32d26cb

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 301
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:44 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "waf-1",
      "uid": "f3e2c3d9-38c6-43a5-95d6-967dc32d26cb",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}