ves-io-schema-dns_zone-CustomAPI-ImportAXFR

Examples of performing dns_zone CustomAPI ImportAXFR

Usecase:

Verify Dns Domain

Request:

Request using vesctl:

vesctl request rpc dns_zone.CustomAPI.ImportAXFR -i request.yaml --uri /public/namespaces/system/dns_zone/import_axfr --http-method POST

where file request.yaml has following contents:

name: my_domain
namespace: system
primaryServer: 10.1.1.1

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"namespace":"system","name":"my_domain","primaryServer":"10.1.1.1"}' -H 'Content-Type: application/json' -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_zone/import_axfr'

curl response:

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

{
  "configuration": null
}