ves-io-schema-service_policy-API-List

Examples of listing service_policy

Usecase:

List service-policy

Request using vesctl:

vesctl configuration list service_policy --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: service-policy-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 106334fc-71b0-45f4-a826-253fbdeedf4d

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

curl response

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

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "service-policy-1",
      "uid": "106334fc-71b0-45f4-a826-253fbdeedf4d",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}