ves-io-schema-secret_policy_rule-API-Get

Examples of getting secretpolicyrule

Usecase:

Get secret-policy-rule-1

Request using vesctl:

vesctl configuration get secret_policy_rule secret-policy-rule-1 --namespace documentation

vesctl yaml response:

metadata:
  annotations: {}
  labels: {}
  name: secret-policy-rule-1
  namespace: documentation
referringObjects: []
resourceVersion: "771"
spec:
  action: ALLOW
  clientNameMatcher:
    exactValues: []
    regexValues:
    - akar\.gc(\d)*\.int\.ves\.io
status: []
systemMetadata:
  creationTimestamp: "2021-07-14T08:08:10.880118966Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 711ffe40-87b6-415b-9fba-313672ec80b2

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 940
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:08:10 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "771",
  "metadata": {
    "name": "secret-policy-rule-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "711ffe40-87b6-415b-9fba-313672ec80b2",
    "creation_timestamp": "2021-07-14T08:08:10.880118966Z",
    "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
  },
  "status": [
  ],
  "referring_objects": [
  ]
}