ves-io-schema-workload_flavor-API-Get

Examples of getting workload_flavor

Usecase:

Get workload_flavor from shared namespace

Request using vesctl:

vesctl configuration get workload_flavor tiny --namespace shared

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: tiny
  namespace: shared
referringObjects: []
resourceVersion: "1247"
spec:
  memory: "4"
  vcpus: 1
status: []
systemMetadata:
  creationTimestamp: "2021-05-12T11:19:29.645078713Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 62743ccf-e3e8-450f-a93f-811694dc9b23

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build672621555_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/shared/workload_flavors/tiny?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 789
Content-Type: application/json
Date: Wed, 12 May 2021 11:19:29 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1247",
  "metadata": {
    "name": "tiny",
    "namespace": "shared",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "62743ccf-e3e8-450f-a93f-811694dc9b23",
    "creation_timestamp": "2021-05-12T11:19:29.645078713Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "memory": "4",
    "vcpus": 1,
    "ephemeral_storage": "0"
  },
  "status": [
  ],
  "referring_objects": [
  ]
}