ves-io-schema-site-API-List

Examples of listing site

Usecase:

List site

Request using vesctl:

vesctl configuration list site --namespace system

vesctl yaml response:

items:
- annotations: {}
  labels: {}
  name: site-1
  namespace: system
  statusSet: []
  tenant: acmecorp
  uid: befeddaa-2a07-443d-a870-06f18956c1b9

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 432
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:30:01 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "system",
      "name": "site-1",
      "uid": "befeddaa-2a07-443d-a870-06f18956c1b9",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}