ves-io-schema-endpoint-API-List

Examples of listing endpoint

Usecase:

List all endpoints in the current namespace

Request using vesctl:

vesctl configuration list endpoint --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: details-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: db153153-95f5-48da-888e-1b2e61c1e6e7
- labels: {}
  name: productpage-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 8f2d2de4-2969-4d6f-b53f-73372b29098c
- labels: {}
  name: ratings-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: d1a542a4-5c1e-469b-bb33-01b5397dad82
- labels: {}
  name: reviews-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: a42332d8-6130-4ef9-9d4e-67f265228977

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build896999001_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/endpoints'

curl response

HTTP/1.1 200 OK
Content-Length: 1195
Content-Type: application/json
Date: Fri, 31 Jul 2020 12:54:09 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "details-endpoint",
      "uid": "db153153-95f5-48da-888e-1b2e61c1e6e7",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage-endpoint",
      "uid": "8f2d2de4-2969-4d6f-b53f-73372b29098c",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "ratings-endpoint",
      "uid": "d1a542a4-5c1e-469b-bb33-01b5397dad82",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "reviews-endpoint",
      "uid": "a42332d8-6130-4ef9-9d4e-67f265228977",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}