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:
- annotations: {}
  labels: {}
  name: waf-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 0ba0e0a6-51f3-40eb-8d6b-51f8b501c315

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_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: 438
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:30:51 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "waf-1",
      "uid": "0ba0e0a6-51f3-40eb-8d6b-51f8b501c315",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}