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: "1281"
spec:
  memory: "4"
  vcpus: 1
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:04:49.432024088Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 1f00e830-01af-4f54-b9d4-d1647c8ff59c

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/shared/workload_flavors/tiny?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 789
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:04:49 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1281",
  "metadata": {
    "name": "tiny",
    "namespace": "shared",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "1f00e830-01af-4f54-b9d4-d1647c8ff59c",
    "creation_timestamp": "2021-08-25T09:04:49.432024088Z",
    "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": [
  ]
}