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:

items:
- annotations: {}
  labels: {}
  name: tiny
  namespace: shared
  statusSet: []
  tenant: acmecorp
  uid: 251b3ed3-7a56-464b-8481-7170305257c3

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_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: 430
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:45:34 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "shared",
      "name": "tiny",
      "uid": "251b3ed3-7a56-464b-8481-7170305257c3",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ]
}