ves-io-schema-workload_flavor-API-Get
On This Page:
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
resourceVersion: "1131"
spec:
memory: "4"
vcpus: 1
status: []
systemMetadata:
creationTimestamp: "2021-02-22T15:45:33.796367900Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
tenant: acmecorp
uid: 010d157a-9937-48da-b04a-71b6062f667e
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/shared/workload_flavors/tiny?response_format=0'
curl response:
HTTP/1.1 200 OK
Content-Length: 759
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:45:33 GMT
Vary: Accept-Encoding
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "1131",
"metadata": {
"name": "tiny",
"namespace": "shared",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "010d157a-9937-48da-b04a-71b6062f667e",
"creation_timestamp": "2021-02-22T15:45:33.796367900Z",
"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": [
]
}