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:

errors: []
items:
- annotations: {}
  labels: {}
  name: details-cluster
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: c6d382ba-56ae-40f9-8dc8-e84705a6ab77
- annotations: {}
  labels: {}
  name: productpage-cluster
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: a16f6bc2-8e56-4187-a23f-0da99e42f3b2
- annotations: {}
  labels: {}
  name: ratings-cluster
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: ce8d296a-1c44-48ab-9c74-5d27e934c053
- annotations: {}
  labels: {}
  name: reviews-cluster
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 3655dba9-42ac-43dd-8e91-41a520ea624c

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build243329498_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-Type: application/json
Date: Fri, 23 Sep 2022 13:11:44 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "details-cluster",
      "uid": "c6d382ba-56ae-40f9-8dc8-e84705a6ab77",
      "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-cluster",
      "uid": "a16f6bc2-8e56-4187-a23f-0da99e42f3b2",
      "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-cluster",
      "uid": "ce8d296a-1c44-48ab-9c74-5d27e934c053",
      "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-cluster",
      "uid": "3655dba9-42ac-43dd-8e91-41a520ea624c",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}