​
Select Service
ves-io-schema-dns_zone-CustomDataAPI-DnsZoneRequestLogs
Published April 5, 2023 | Last modified October 28, 2026
Examples of performing dns_zone CustomDataAPI DnsZoneRequestLogs
Usecase:
Dns Zone Request Logs
Request:
Request using vesctl:
vesctl request rpc dns_zone.CustomDataAPI.DnsZoneRequestLogs -i request.yaml --uri /public/namespaces/system/dns_zones/request_logs --http-method POST
where file request.yaml has following contents:
endTime: "1694626055"filter: '{COUNTRY_CODE="CN"}'namespace: systemstartTime: "1694539655"vesctl yaml response:
logs:- clientSubnet: 1.2.3.4 countryCode: CN domain: www.example.com queryType: AAAA responseCode: NOERROR responses: [] timestamp: "2023-09-13T17:27:35.549Z"totalHits: "1"Request using curl:
curl -X 'POST' -d '{"namespace":"system","filter":"{COUNTRY_CODE=\"CN\"}","start_time":"1694539655","end_time":"1694626055"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_var_folders_q2_3kp8z3zs0x5_m7pk1bgb0_ph0000gp_T_go-build3348201650_b001_apidocs.test/host=MTY6VVHQPH/svc=S:examplesvc/site=mytestce01' 'https://acmecorp.console.ves.volterra.io/api/data/namespaces/system/dns_zones/request_logs'curl response:
HTTP/1.1 200 OKContent-Length: 314Content-Type: application/jsonDate: Mon, 28 Sep 2026 04:25:12 GMTVary: Accept-Encoding
{ "logs": [ { "timestamp": "2023-09-13T17:27:35.549Z", "country_code": "CN", "domain": "www.example.com", "query_type": "AAAA", "response_code": "NOERROR", "client_subnet": "1.2.3.4", "dns_zone_name": "", "responses": [ ] } ], "total_hits": "1"}