ves-io-schema-cloud_credentials-API-Replace

Examples of replacing cloud_credentials

Usecase:

Replace cloud_credentials object to change the secret key

Request using vesctl:

vesctl configuration replace cloud_credentials -i cloud_credentials.yaml

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

metadata:
  name: aws-cloud-credentials
  namespace: system
spec:
  awsSecretKey:
    accessKey: abcdefghijkl
    secretKey:
      clearSecretInfo:
        url: string://<base64>

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"aws-cloud-credentials","namespace":"system"},"spec":{"awsSecretKey":{"accessKey":"abcdefghijkl","secretKey":{"clearSecretInfo":{"url":"string://\u003cbase64\u003e"}}}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build743694289_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/cloud_credentialss/aws-cloud-credentials'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Thu, 02 Jul 2020 15:52:58 GMT
Vary: Accept-Encoding

{

}