ves-io-schema-voltshare_admin_policy-API-Get

Examples of getting voltshareadminpolicy

Usecase:

Get voltshare-admin-policy-1

Request using vesctl:

vesctl configuration get voltshare_admin_policy voltshare-admin-policy-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: voltshare-admin-policy-1
    namespace: documentation
    uid: 11889dc7-71d8-4de5-88bf-846be9b838a5
  spec:
    gcSpec:
      authorRestrictions:
        allowList:
          customList:
          - regexPattern: .*.sales@customer1.com
          - exactValue: user1@customer1.com
        denyList:
          customList:
          - regexPattern: .*.eng@customer1.com
      maxValidityDuration: 604800s
      userRestrictions:
      - tenant: customer2
        userRestrictions:
          allowList:
            customList:
            - regexPattern: .*.sales@customer1.com
          denyList:
            customList:
            - regexPattern: .*.eng@customer1.com
      - tenant: Volterra
        userRestrictions:
          allowList:
            customList:
            - regexPattern: .*@google.com
      - userRestrictions:
          allowList:
            customList:
            - regexPattern: .*@google.com
          denyList:
            customList:
            - regexPattern: .*@facebook.com
  systemMetadata:
    creationTimestamp: "2020-07-02T15:53:43.430682100Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 26a4ef1bea04821c:26a4ef1bea04821c:0:1
    uid: 11889dc7-71d8-4de5-88bf-846be9b838a5
resourceVersion: "708"
status: []

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:53:43 GMT
Vary: Accept-Encoding

{
  "object": {
    "metadata": {
      "name": "voltshare-admin-policy-1",
      "namespace": "documentation",
      "uid": "11889dc7-71d8-4de5-88bf-846be9b838a5",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "11889dc7-71d8-4de5-88bf-846be9b838a5",
      "creation_timestamp": "2020-07-02T15:53:43.430682100Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "26a4ef1bea04821c:26a4ef1bea04821c:0:1",
      "object_index": 0,
      "namespace": [
        {
          "kind": "namespace",
          "uid": "",
          "tenant": "acmecorp",
          "namespace": "",
          "name": "documentation"
        }
      ],
      "owner_view": null
    },
    "spec": {
      "gc_spec": {
        "max_validity_duration": "604800s",
        "author_restrictions": {
          "allow_list": {
            "custom_list": [
              {
                "regex_pattern": ".*.sales@customer1.com"
              },
              {
                "exact_value": "user1@customer1.com"
              }
            ]
          },
          "deny_list": {
            "custom_list": [
              {
                "regex_pattern": ".*.eng@customer1.com"
              }
            ]
          }
        },
        "user_restrictions": [
          {
            "tenant": "customer2",
            "user_restrictions": {
              "allow_list": {
                "custom_list": [
                  {
                    "regex_pattern": ".*.sales@customer1.com"
                  }
                ]
              },
              "deny_list": {
                "custom_list": [
                  {
                    "regex_pattern": ".*.eng@customer1.com"
                  }
                ]
              }
            }
          },
          {
            "tenant": "Volterra",
            "user_restrictions": {
              "allow_list": {
                "custom_list": [
                  {
                    "regex_pattern": ".*@google.com"
                  }
                ]
              }
            }
          },
          {
            "user_restrictions": {
              "allow_list": {
                "custom_list": [
                  {
                    "regex_pattern": ".*@google.com"
                  }
                ]
              },
              "deny_list": {
                "custom_list": [
                  {
                    "regex_pattern": ".*@facebook.com"
                  }
                ]
              }
            }
          }
        ]
      }
    }
  },
  "create_form": null,
  "replace_form": null,
  "resource_version": "708",
  "metadata": null,
  "system_metadata": null,
  "spec": null,
  "status": [
  ]
}