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:

errors: []
items:
- annotations: {}
  labels: {}
  name: adservice
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 606d5737-38c0-437c-a96b-e660dfd1f55a

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_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: 461
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:34 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "adservice",
      "uid": "606d5737-38c0-437c-a96b-e660dfd1f55a",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}