ves-io-schema-views-policy_based_routing-API-List

Examples of listing policybasedrouting

Usecase:

List policybasedrouting

Request using vesctl:

vesctl configuration list policy_based_routing --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: policy-based-routing-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: dd73758c-04d0-46aa-8bb8-02812773cfa4

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

curl response

HTTP/1.1 200 OK
Content-Length: 318
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:51:05 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "policy-based-routing-1",
      "uid": "dd73758c-04d0-46aa-8bb8-02812773cfa4",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}