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:

metadata:
  annotations: {}
  labels: {}
  name: voltshare-admin-policy-1
  namespace: documentation
resourceVersion: "1109"
spec:
  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
status: []
systemMetadata:
  creationTimestamp: "2021-03-31T08:30:50.066100300Z"
  creatorClass: examplesvc
  creatorId: examplesvc
  finalizers: []
  tenant: acmecorp
  uid: 6f7c556a-316a-48e2-b795-0b107458352b

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build318584715_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: Wed, 31 Mar 2021 08:30:50 GMT
Vary: Accept-Encoding

{
  "object": null,
  "create_form": null,
  "replace_form": null,
  "resource_version": "1109",
  "metadata": {
    "name": "voltshare-admin-policy-1",
    "namespace": "documentation",
    "labels": {
    },
    "annotations": {
    },
    "description": "",
    "disable": false
  },
  "system_metadata": {
    "uid": "6f7c556a-316a-48e2-b795-0b107458352b",
    "creation_timestamp": "2021-03-31T08:30:50.066100300Z",
    "deletion_timestamp": null,
    "modification_timestamp": null,
    "initializers": null,
    "finalizers": [
    ],
    "tenant": "acmecorp",
    "creator_class": "examplesvc",
    "creator_id": "examplesvc",
    "object_index": 0,
    "owner_view": null
  },
  "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"
              }
            ]
          }
        }
      }
    ]
  },
  "status": [
  ]
}