ves-io-schema-secret_policy_rule-API-List

Examples of listing secretpolicyrule

Usecase:

List secret-policy-rule

Request using vesctl:

vesctl configuration list secret_policy_rule --namespace documentation

vesctl yaml response:

errors: []
items:
- annotations: {}
  labels: {}
  name: secret-policy-rule-1
  namespace: documentation
  statusSet: []
  tenant: acmecorp
  uid: 96265423-c279-4037-812d-cd0a92295f4f

Request using curl:

curl -X 'GET' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/secret_management/namespaces/documentation/secret_policy_rules'

curl response

HTTP/1.1 200 OK
Content-Length: 472
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:54 GMT
Vary: Accept-Encoding

{
  "items": [
    {
      "tenant": "acmecorp",
      "namespace": "documentation",
      "name": "secret-policy-rule-1",
      "uid": "96265423-c279-4037-812d-cd0a92295f4f",
      "description": "",
      "disabled": false,
      "labels": {
      },
      "annotations": {
      },
      "owner_view": null,
      "metadata": null,
      "system_metadata": null,
      "object": null,
      "get_spec": null,
      "status_set": [
      ]
    }
  ],
  "errors": [
  ]
}