ves-io-schema-tpm_api_key-API-Get
On This Page:
Examples of getting tpmapikey
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
resourceVersion: "846"
spec:
categoryRef:
- kind: tpm_category.Object
name: category-sku-001
namespace: documentation
tenant: acmecorp
status: []
systemMetadata:
creationTimestamp: "2021-03-31T08:30:09.028231100Z"
creatorClass: examplesvc
creatorId: examplesvc
finalizers: []
tenant: acmecorp
uid: 7373c481-6f66-4d48-aa7d-7b56696232ab
Request using curl:
curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_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: 1033
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:30:09 GMT
Vary: Accept-Encoding
{
"object": null,
"create_form": null,
"replace_form": null,
"resource_version": "846",
"metadata": {
"name": "apikey1",
"namespace": "documentation",
"labels": {
},
"annotations": {
},
"description": "",
"disable": false
},
"system_metadata": {
"uid": "7373c481-6f66-4d48-aa7d-7b56696232ab",
"creation_timestamp": "2021-03-31T08:30:09.028231100Z",
"deletion_timestamp": null,
"modification_timestamp": null,
"initializers": null,
"finalizers": [
],
"tenant": "acmecorp",
"creator_class": "examplesvc",
"creator_id": "examplesvc",
"object_index": 0,
"owner_view": null
},
"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": [
]
}