ves-io-schema-kms_policy-API-Get

Examples of getting kms_policy

Usecase:

Get kms-policy-1

Request using vesctl:

vesctl configuration get kms_policy kms-policy-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: kms-policy-1
  namespace: documentation
referringObjects: []
resourceVersion: "480"
spec:
  rules:
  - kind: kms_policy_rule
    name: kms-policy-rule-1
    namespace: documentation
    tenant: acmecorp
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:03:17.143357307Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 95c24b25-6d65-441b-891e-2a77caaf31df

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/kms/namespaces/documentation/kms_policys/kms-policy-1?response_format=0'

curl response:

HTTP/1.1 200 OK
Content-Length: 961
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:17 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "480",
  "metadata": {
    "name": "kms-policy-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "95c24b25-6d65-441b-891e-2a77caaf31df",
    "creation_timestamp": "2021-08-25T09:03:17.143357307Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "algo": "FIRST_MATCH",
    "rules": [
      {
        "kind": "kms_policy_rule",
        "uid": "",
        "tenant": "acmecorp",
        "namespace": "documentation",
        "name": "kms-policy-rule-1"
      }
    ]
  },
  "status": [
  ],
  "referring_objects": [
  ]
}