ves-io-schema-secret_policy-CustomAPI-RecoverPolicy

Examples of performing secret_policy CustomAPI RecoverPolicy

Usecase:

Recover Secret Policy

Request:

Request using vesctl:

vesctl request rpc secret_policy.CustomAPI.RecoverPolicy -i request.yaml --uri /public/namespaces/{namespace}/secret_policys/{name}/recover --http-method POST

where file request.yaml has following contents:

name: localpolicy
namespace: system

vesctl yaml response:

status: "204"

Request using curl:

curl -X 'POST' -d '{"namespace":"system","name":"localpolicy"}' -H 'Content-Type: application/json' -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/