ves-io-schema-secret_management_access-API-Replace

Examples of replacing secretmanagementaccess

Usecase:

Replace secret-management-access-1

Request using vesctl:

vesctl configuration replace secret_management_access -i secret_management_access.yaml

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

metadata:
  name: secret-management-access-1
  namespace: documentation
spec:
  accessInfo:
    scheme: HTTPS
    serverEndpoint: vault.customer1.volterra.us
    tlsConfig:
      commonParams:
        trustedCaUrl: string:///abcd
    vaultAuthInfo:
      appRoleAuth:
        roleId: role-2
  providerName: cec01

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"secret-management-access-1","namespace":"documentation"},"spec":{"providerName":"cec01","accessInfo":{"scheme":"HTTPS","serverEndpoint":"vault.customer1.volterra.us","tlsConfig":{"commonParams":{"trustedCaUrl":"string:///abcd"}},"vaultAuthInfo":{"appRoleAuth":{"roleId":"role-2"}}}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build013258245_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/secret_management_accesss/secret-management-access-1'

curl response:

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

{

}