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: ae709c5a-bd34-4516-82c1-514be5373289
- annotations: {}
  labels: {}
  name: productpage-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: e3aad770-fcd4-4a30-ae76-0d727fbd70ff
- annotations: {}
  labels: {}
  name: ratings-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: cc9db6c7-a6bd-4d2e-a651-f162da4a15b2
- annotations: {}
  labels: {}
  name: reviews-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 428cf291-48e2-44bb-bf94-e500d576dcd8

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

curl response

HTTP/1.1 200 OK
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:02:59 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "details-endpoint",
      "uid": "ae709c5a-bd34-4516-82c1-514be5373289",
      "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": "e3aad770-fcd4-4a30-ae76-0d727fbd70ff",
      "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": "cc9db6c7-a6bd-4d2e-a651-f162da4a15b2",
      "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": "428cf291-48e2-44bb-bf94-e500d576dcd8",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}