ves-io-schema-site-API-List

Examples of listing site

Usecase:

List site

Request using vesctl:

vesctl configuration list site --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: site-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: aab7fa40-69c6-4718-a5fa-23250f870449

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/sites'

curl response

HTTP/1.1 200 OK
Content-Length: 302
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:33 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "site-1",
      "uid": "aab7fa40-69c6-4718-a5fa-23250f870449",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}