ves-io-schema-crl-API-Replace

Examples of replacing crl

Usecase:

Replace crl-config-1

Request using vesctl:

vesctl configuration replace crl -i crl.yaml

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

metadata:
  name: crl-1
  namespace: documentation
spec:
  httpAccess:
    path: /blob/all_new.crl
  refreshInterval: 24
  serverAddress: mycrlserver.com
  serverPort: 80

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"crl-1","namespace":"documentation"},"spec":{"serverAddress":"mycrlserver.com","serverPort":80,"refreshInterval":24,"httpAccess":{"path":"/blob/all_new.crl"}}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/documentation/crls/crl-1'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:48:12 GMT
Vary: Accept-Encoding

{

}