ves-io-schema-service_policy_set-API-List

Examples of listing servicepolicyset

Usecase:

List service-policy-set

Request using vesctl:

vesctl configuration list service_policy_set --namespace documentation

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: service-policy-set-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: b86cb751-2ff8-481e-8cd3-18001739269d

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_policy_sets'

curl response

HTTP/1.1 200 OK
Content-Length: 472
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:57 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "service-policy-set-1",
      "uid": "b86cb751-2ff8-481e-8cd3-18001739269d",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}