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:
deletedReferredObjects: []
disabledReferredObjects: []
metadata:
annotations: {}
labels: {}
name: apikey1
namespace: documentation
referringObjects: []
resourceVersion: "2914"
spec:
categoryRef:
- kind: tpm_category.Object
name: category-sku-001
namespace: documentation
tenant: acmecorp
status: []
systemMetadata:
creationTimestamp: "2024-03-21T14:08:10.203197Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
labels: {}
tenant: acmecorp
uid: 27fb1324-4c7a-4d01-bc50-a05cc7957818
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_2__8qnt6fwd5dvglr1xqq6l8b7w0000gp_T_go-build3109416560_b001_apidocs.test/host=C02FN35BMD6R/svc=S:examplesvc/site=mytestce01' '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: 1141
Content-Type: application/json
Date: Thu, 21 Mar 2024 14:08:10 GMT
Vary: Accept-Encoding
{
"create_form": null,
"replace_form": null,
"resource_version": "2914",
"metadata": {
"name": "apikey1",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "27fb1324-4c7a-4d01-bc50-a05cc7957818",
"creation_timestamp": "2024-03-21T14:08:10.203197Z",
"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": [
],
"deleted_referred_objects": [
],
"disabled_referred_objects": [
]
}