ves-io-schema-kms_policy_rule-API-Get

Examples of getting kmspolicyrule

Usecase:

Get kms-policy-rule-1

Request using vesctl:

vesctl configuration get kms_policy_rule kms-policy-rule-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: kms-policy-rule-1
  namespace: documentation
referringObjects: []
resourceVersion: "492"
spec:
  action: ALLOW
  clientNameMatcher:
    exactValues: []
    regexValues:
    - akar\.gc(\d)*\.int\.ves\.io
status: []
systemMetadata:
  creationTimestamp: "2021-08-25T09:03:18.225614793Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 14338704-8161-4e4a-8f70-7f9acc62cd8a

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_policy_rules/kms-policy-rule-1?response_format=0'

curl response:

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

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "492",
  "metadata": {
    "name": "kms-policy-rule-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "14338704-8161-4e4a-8f70-7f9acc62cd8a",
    "creation_timestamp": "2021-08-25T09:03:18.225614793Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "spec": {
    "action": "ALLOW",
    "client_name_matcher": {
      "exact_values": [
      ],
      "regex_values": [
        "akar\.gc(\d)*\.int\.ves\.io"
      ]
    },
    "label_matcher": null,
    "operation": null
  },
  "status": [
  ],
  "referring_objects": [
  ]
}