ves-io-schema-dns_domain-API-Replace

Examples of replacing dns_domain

Usecase:

Replace "example.com" dns_domain to now support "Verification Only"

Request using vesctl:

vesctl configuration replace dns_domain -i dns_domain.yaml

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

metadata:
  name: example.com
  namespace: system
spec:
  verificationOnly: null

vesctl yaml response: None

Request using curl:

curl -X 'PUT' -d '{"metadata":{"name":"example.com","namespace":"system"},"spec":{"verificationOnly":null}}' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build896999001_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/config/namespaces/system/dns_domains/example.com'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Fri, 31 Jul 2020 12:54:09 GMT
Vary: Accept-Encoding

{

}