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:

errors: []
items:
- annotations: {}
  labels: {}
  name: details-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 17eefe5f-a825-4f9f-9f43-6111134df23c
- annotations: {}
  labels: {}
  name: productpage-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 7dd96ac0-9804-4030-afab-f5c466ebbc5c
- annotations: {}
  labels: {}
  name: ratings-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: b5c3a119-becf-4612-8d6e-46b540d7ff3a
- annotations: {}
  labels: {}
  name: reviews-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 0b007e68-891f-4c9a-8045-9d3cd9ae660d

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_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-Type: application/json
Date: Wed, 14 Jul 2021 08:07:00 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "details-endpoint",
      "uid": "17eefe5f-a825-4f9f-9f43-6111134df23c",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage-endpoint",
      "uid": "7dd96ac0-9804-4030-afab-f5c466ebbc5c",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "ratings-endpoint",
      "uid": "b5c3a119-becf-4612-8d6e-46b540d7ff3a",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "reviews-endpoint",
      "uid": "0b007e68-891f-4c9a-8045-9d3cd9ae660d",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}