ves-io-schema-dns_zone-API-Replace

Examples of replacing dns_zone

Usecase:

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

Request using vesctl:

vesctl configuration replace dns_zone -i dns_zone.yaml

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

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

vesctl yaml response: None

Request using curl:

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

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:02:58 GMT
Vary: Accept-Encoding

{

}