ves-io-schema-container_registry-API-Replace

Examples of replacing container_registry

Usecase:

Replace example

Request using vesctl:

vesctl configuration replace container_registry -i container_registry.yaml

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

metadata:
  name: example
  namespace: documentation
spec:
  password:
    clearSecretInfo: {}
  registry: registry.example.com

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"example","namespace":"documentation"},"spec":{"registry":"registry.example.com","password":{"clearSecretInfo":{}}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build381173587_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/container_registrys/example'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 14 Jul 2021 08:06:52 GMT
Vary: Accept-Encoding

{

}