ves-io-schema-views-workload-API-List

Examples of listing workload

Usecase:

List workload

Request using vesctl:

vesctl configuration list workload --namespace documentation

vesctl yaml response:

items:
- labels: {}
  name: adservice
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: debd944a-b22e-4f03-bfe0-9b4997ee2c5a

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 305
Content-Type: application/json
Date: Mon, 19 Oct 2020 09:49:35 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "adservice",
      "uid": "debd944a-b22e-4f03-bfe0-9b4997ee2c5a",
      "labels": {
      },
      "owner_view": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}