ves-io-schema-views-voltstack_site-API-List

Examples of listing voltstack_site

Usecase:

List voltstack sites in system namespace

Request using vesctl:

vesctl configuration list voltstack_site --namespace system

vesctl yaml response:

items:
- annotations: {}
  labels: {}
  name: cluster-1
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: 1f6ff3a4-efce-4dc9-b551-2f262ffabe8f

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 435
Content-Type: application/json
Date: Tue, 24 Nov 2020 10:47:40 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "cluster-1",
      "uid": "1f6ff3a4-efce-4dc9-b551-2f262ffabe8f",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}