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
resourceVersion: "447"
spec:
  action: ALLOW
  clientNameMatcher:
    exactValues: []
    regexValues:
    - akar\.gc(\d)*\.int\.ves\.io
status: []
systemMetadata:
  creationTimestamp: "2021-02-22T15:44:09.414119Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: bd52a916-cfa2-421d-873b-56e032410586

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build817539475_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: 927
Content-Type: application/json
Date: Mon, 22 Feb 2021 15:44:09 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "447",
  "metadata": {
    "name": "kms-policy-rule-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "bd52a916-cfa2-421d-873b-56e032410586",
    "creation_timestamp": "2021-02-22T15:44:09.414119Z",
    "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": [
  ]
}