ves-io-schema-policer-API-List

Examples of listing policer

Usecase:

List policer

Request using vesctl:

vesctl configuration list policer --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: policer-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 340010fc-74b8-4e7f-8b2c-36fed9caaca1

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

curl response

HTTP/1.1 200 OK
Content-Length: 305
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:50:39 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "policer-1",
      "uid": "340010fc-74b8-4e7f-8b2c-36fed9caaca1",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}