ves-io-schema-tpm_api_key-API-Get

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:

object:
  metadata:
    annotations: {}
    labels: {}
    name: apikey1
    namespace: documentation
    uid: da20708e-fc76-4605-af8f-7d84efc33c13
  spec:
    gcSpec:
      categoryRef:
      - kind: tpm_category.Object
        name: category-sku-001
        namespace: documentation
        tenant: acmecorp
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:35.609551200Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 391eea5025370005:391eea5025370005:0:1
    uid: da20708e-fc76-4605-af8f-7d84efc33c13
resourceVersion: "610"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build743694289_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-Type: application/json
Date: Thu, 02 Jul 2020 15:53:35 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "apikey1",
      "namespace": "documentation",
      "uid": "da20708e-fc76-4605-af8f-7d84efc33c13",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "da20708e-fc76-4605-af8f-7d84efc33c13",
      "creation_timestamp": "2020-07-02T15:53:35.609551200Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "391eea5025370005:391eea5025370005:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "category_ref": [
          {
            "kind": "tpm_category.Object",
            "uid": "",
            "tenant": "acmecorp",
            "namespace": "documentation",
            "name": "category-sku-001"
          }
        ],
        "need_mtls": false,
        "apikey": "",
        "key_bytes": "",
        "revoked_timestamp": null,
        "revoke_reason": "",
        "is_disabled": false
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "610",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}