ves-io-schema-secret_management-CustomAPI-GetPolicyDocument

Examples of performing secret_management CustomAPI GetPolicyDocument

Usecase:

Get Policy Document

Request:

Request using vesctl:

vesctl request rpc secret_management.CustomAPI.GetPolicyDocument -i request.yaml --uri /public/namespaces/system/secret_policys/site-secret-policy/get_policy_document --http-method GET

where file request.yaml has following contents:

name: site-secret-policy
namespace: system

vesctl yaml response:

{}

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -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/system/secret_policys/site-secret-policy/get_policy_document?name=site-secret-policy&namespace=system'

curl response:

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

{
  "data": null
}