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: 9b8ef221-0c52-4d9b-86e8-33e8d99f2d5e
- annotations: {}
  labels: {}
  name: productpage-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 94b2c963-35b1-41ed-bea0-c003af9dcd39
- annotations: {}
  labels: {}
  name: ratings-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 16bf4cdf-f390-43e1-a3db-64f45e0ec2c6
- annotations: {}
  labels: {}
  name: reviews-endpoint
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: e14ef903-3868-4250-9d73-d9f3851bc68b

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_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: Thu, 28 Jul 2022 12:10:02 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "details-endpoint",
      "uid": "9b8ef221-0c52-4d9b-86e8-33e8d99f2d5e",
      "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": "94b2c963-35b1-41ed-bea0-c003af9dcd39",
      "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": "16bf4cdf-f390-43e1-a3db-64f45e0ec2c6",
      "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": "e14ef903-3868-4250-9d73-d9f3851bc68b",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}