ves-io-schema-voltshare_admin_policy-API-Replace

Examples of replacing voltshareadminpolicy

Usecase:

Replace voltshare-admin-policy-1

Request using vesctl:

vesctl configuration replace voltshare_admin_policy -i voltshare_admin_policy.yaml

where file voltshareadminpolicy.yaml has following contents (voltshareadminpolicy.ReplaceRequest):

metadata:
  name: voltshare-admin-policy-1
  namespace: documentation
spec:
  maxValidityDuration: 345600s

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"voltshare-admin-policy-1","namespace":"documentation"},"spec":{"maxValidityDuration":"345600s"}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/secret_management/namespaces/documentation/voltshare_admin_policys/voltshare-admin-policy-1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 16 Sep 2020 10:51:11 GMT
Vary: Accept-Encoding

{

}