ves-io-schema-cluster-API-List

Examples of listing cluster

Usecase:

List all clusters in current namespace

Request using vesctl:

vesctl configuration list cluster --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: details-cluster
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 6d793102-b0d4-452f-b723-204bb542aa7f
- labels: {}
  name: productpage-cluster
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: b7f778d8-1d60-49a7-bf16-6d22fb987b7c
- labels: {}
  name: ratings-cluster
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: f95a0927-3804-4f0b-8638-22e2b331eef2
- labels: {}
  name: reviews-cluster
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 6b3f1940-31e5-4f18-9d95-a054df820c39

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 1191
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:52:58 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "details-cluster",
      "uid": "6d793102-b0d4-452f-b723-204bb542aa7f",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "productpage-cluster",
      "uid": "b7f778d8-1d60-49a7-bf16-6d22fb987b7c",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "ratings-cluster",
      "uid": "f95a0927-3804-4f0b-8638-22e2b331eef2",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    },
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "reviews-cluster",
      "uid": "6b3f1940-31e5-4f18-9d95-a054df820c39",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}