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: http://registry.example.com

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"example","namespace":"documentation"},"spec":{"registry":"http://registry.example.com","password":{"clearSecretInfo":{}}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build185306297_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: Mon, 19 Oct 2020 09:48:13 GMT
Vary: Accept-Encoding

{

}