ves-io-schema-secureshare_admin_policy-API-Get

Examples of getting secureshareadminpolicy

Usecase:

Get secureshare-admin-policy-1

Request using vesctl:

vesctl configuration get secureshare_admin_policy secureshare-admin-policy-1 --namespace documentation

vesctl yaml response:

object:
  metadata:
    annotations: {}
    labels: {}
    name: secureshare-admin-policy-1
    namespace: documentation
    uid: f738d878-368c-47d9-9133-9c9149819e80
  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:29.307787600Z"
    creatorClass: examplesvc.ves.io
    finalizers: []
    namespace:
    - kind: namespace
      name: documentation
      tenant: acmecorp
    tenant: acmecorp
    traceInfo: 3828a0710a5582ab:3828a0710a5582ab:0:1
    uid: f738d878-368c-47d9-9133-9c9149819e80
resourceVersion: "523"

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/secureshare_admin_policys/secureshare-admin-policy-1?response_format=0'

curl response:

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

{
  "object": {
    "metadata": {
      "name": "secureshare-admin-policy-1",
      "namespace": "documentation",
      "uid": "f738d878-368c-47d9-9133-9c9149819e80",
      "labels": {
      },
      "annotations": {
      },
      "description": "",
      "disable": false
    },
    "system_metadata": {
      "uid": "f738d878-368c-47d9-9133-9c9149819e80",
      "creation_timestamp": "2020-07-02T15:53:29.307787600Z",
      "deletion_timestamp": null,
      "modification_timestamp": null,
      "initializers": null,
      "finalizers": [
      ],
      "tenant": "acmecorp",
      "creator_class": "examplesvc.ves.io",
      "creator_id": "",
      "creator_cookie": "",
      "trace_info": "3828a0710a5582ab:3828a0710a5582ab: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": "523",
  "metadata": null,
  "system_metadata": null,
  "spec": null
}