ves-io-schema-tpm_api_key-API-Get
On This Page:
Examples of getting tpm_api_key
Usecase:
Get "tpm apikey" that was created in previous example
Request using vesctl:
vesctl configuration get tpm_api_key apikey1 --namespace documentation
vesctl yaml response:
metadata:
annotations: {}
labels: {}
name: apikey1
namespace: documentation
referringObjects: []
resourceVersion: "2031"
spec:
categoryRef:
- kind: tpm_category.Object
name: category-sku-001
namespace: documentation
tenant: acmecorp
status: []
systemMetadata:
creationTimestamp: "2022-07-28T12:13:45.842019542Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
labels: {}
tenant: acmecorp
uid: 1f6086cd-6a2c-49b9-9aa6-8de0c136a9dd
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build1372770011_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/tpm/namespaces/documentation/tpm_api_keys/apikey1?response_format=0'
curl response:
HTTP/1.1 200 OK
Content-Length: 1087
Content-Type: application/json
Date: Thu, 28 Jul 2022 12:13:45 GMT
Vary: Accept-Encoding
X-Volterra-Response-Fields-Deprecated: object
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "2031",
"metadata": {
"name": "apikey1",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "1f6086cd-6a2c-49b9-9aa6-8de0c136a9dd",
"creation_timestamp": "2022-07-28T12:13:45.842019542Z",
"deletion_timestamp": null,
"modification_timestamp": null,
"initializers": null,
"finalizers": [
],
"tenant": "acmecorp",
"creator_class": "examplesvc",
"creator_id": "examplesvc",
"object_index": 0,
"owner_view": null,
"labels": {
}
},
"spec": {
"category_ref": [
{
"kind": "tpm_category.Object",
"uid": "",
"tenant": "acmecorp",
"namespace": "documentation",
"name": "category-sku-001"
}
],
"need_mtls": false,
"apikey": "",
"revoked_timestamp": null,
"revoke_reason": "",
"is_disabled": false
},
"status": [
],
"referring_objects": [
]
}