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:

object:
  metadata:
    annotations: {}
    labels: {}
    name: kms-policy-rule-1
    namespace: documentation
    uid: ed0176e5-026a-471c-a6fc-9e757ff15947
  spec:
    gcSpec:
      action: ALLOW
      clientNameMatcher:
        exactValues: []
        regexValues:
        - akar\.gc(\d)*\.int\.ves\.io
        transformers: []
  systemMetadata:
    creationTimestamp: "2020-05-15T10:52:44.628718788Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 6a431c946b1e8518:6a431c946b1e8518:0:1
    uid: ed0176e5-026a-471c-a6fc-9e757ff15947
resourceVersion: "273"
status: []

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build144460626_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-Type: application/json
Date: Fri, 15 May 2020 10:52:44 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "kms-policy-rule-1",
      "namespace": "documentation",
      "uid": "ed0176e5-026a-471c-a6fc-9e757ff15947",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "ed0176e5-026a-471c-a6fc-9e757ff15947",
      "creation_timestamp": "2020-05-15T10:52:44.628718788Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "6a431c946b1e8518:6a431c946b1e8518:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "action": "ALLOW",
        "client_name": "",
        "client_selector": null,
        "client_name_matcher": {
          "exact_values": [
          ],
          "regex_values": [
            "akar\.gc(\d)*\.int\.ves\.io"
          ],
          "transformers": [
          ]
        },
        "label_matcher": null,
        "operation": null
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "273",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}