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
resourceVersion: "421"
spec:
  policies: []
status: []
systemMetadata:
  creationTimestamp: "2021-03-31T08:29:05.012270100Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 6e1f2bc9-4def-4aa1-af98-097a0ebd4875

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/kms/namespaces/documentation/kms_keys/kms-rsa-key-default?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 808
Content-Type: application/json
Date: Wed, 31 Mar 2021 08:29:05 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "421",
  "metadata": {
    "name": "kms-rsa-key-default",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "6e1f2bc9-4def-4aa1-af98-097a0ebd4875",
    "creation_timestamp": "2021-03-31T08:29:05.012270100Z",
    "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": [
  ]
}