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:

errors: []
items:
- annotations: {}
  labels: {}
  name: service-policy-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: fb8d6bca-c4cf-43e0-b160-7257e5247d74

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_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: 468
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:55 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "service-policy-1",
      "uid": "fb8d6bca-c4cf-43e0-b160-7257e5247d74",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}