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:

errors: []
items:
- annotations: {}
  labels: {}
  name: waf-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 4856ce96-f515-4259-93f0-7eb3580cafbd

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/wafs'

curl response

HTTP/1.1 200 OK
Content-Length: 457
Content-Type: application/json
Date: Wed, 02 Jun 2021 10:23:01 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "waf-1",
      "uid": "4856ce96-f515-4259-93f0-7eb3580cafbd",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}