ves-io-schema-kms_key-API-Get

Examples of getting kms_key

Usecase:

Get kms-rsa-key-default

Request using vesctl:

vesctl configuration get kms_key kms-rsa-key-default --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: kms-rsa-key-default
  namespace: documentation
referringObjects: []
resourceVersion: "441"
spec:
  policies: []
status: []
systemMetadata:
  creationTimestamp: "2021-06-02T10:21:26.084739635Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: d854494d-018f-4728-bc40-046dc6494513

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build186462253_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/kms/namespaces/documentation/kms_keys/kms-rsa-key-default?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 838
Content-Type: application/json
Date: Wed, 02 Jun 2021 10:21:26 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "441",
  "metadata": {
    "name": "kms-rsa-key-default",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "d854494d-018f-4728-bc40-046dc6494513",
    "creation_timestamp": "2021-06-02T10:21:26.084739635Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "sensitivity": "SENSITIVITY_MEDIUM",
    "policies": [
    ],
    "max_cache_age": null
  },
  "status": [
  ],
  "referring_objects": [
  ]
}