ves-io-schema-workload_flavor-API-List

Examples of listing workload_flavor

Usecase:

List all workload_flavor from shared namespace

Request using vesctl:

vesctl configuration list workload_flavor --namespace workload_flavor

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: tiny
  namespace: shared
  statusSet: []
  tenant: acmecorp
  uid: d8c6b048-de2e-4449-998e-fd38486c8fca

Request using curl:

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

curl response

HTTP/1.1 200 OK
Content-Length: 449
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:09:12 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "shared",
      "name": "tiny",
      "uid": "d8c6b048-de2e-4449-998e-fd38486c8fca",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}