Login

Get list of snapshot records

HTTP method

GET

URL

https://api.zilore.com/dns/v1/domains/{domain_name}/snapshots/{snapshot_id}/records

Request parameters

Parameter

Description

domain_name

Domain name. Must conform to the standard. Names of national domains must be passed in Punycode format.

snapshot_id

Identifier of snapshot

Response fields

Parameter

Description

snapshot_id

Identifier of snapshot

snapshot_time

Time when snapshot was created (UNIX timestamp in seconds)

snapshot_records

Number of records in snapshot

snapshot_created_by

Creator of the snapshot

snapshot_geo_records

Number of GEO records in snapshot

snapshot_failover_records

Number of failover records in snapshot

snapshot

Snapshot object consisting of three fields: records, geo_records, failober_records. Fields contain lists of the corresponding entities. Their fields are analogous to the fields returned by the list_records, list_geo_records, and list_failover_records methods respectively (not that the identifier, status, and active value fields for failovers are not included)

Request example

GET https://api.zilore.com/dns/v1/domains/example.com/snapshots/5387/records
X-Auth-Key: 6fac94db-691b-ec08-d22c-00000b7c06c0

Response example

{
"status": "ok",
"response": {
"snapshot_id": "5387",
"snapshot_time": "1460553452",
"snapshot_records": 13,
"snapshot_geo_records": 3,
"snapshot_failover_records": 1,
"snapshot_created_by": "User",
"snapshot": {
"records": [{
"record_id": "11857",
"record_name": "example.com",
"record_type": "SOA",
"record_value": "ns1.zilore.net support@zilore.com 1460553336",
"record_ttl": "3600",
"is_geo": "no",
"is_failover": "no"
}, {
"record_id": "11858",
"record_name": "example.com",
"record_type": "NS",
"record_value": "ns1.zilore.net",
"record_ttl": "3600",
"is_geo": "no",
"is_failover": "no"
}, {
"record_id": "11859",
"record_name": "example.com",
"record_type": "NS",
"record_value": "ns2.zilore.net",
"record_ttl": "3600",
"is_geo": "no",
"is_failover": "no"
}, {
"record_id": "11861",
"record_name": "test.example.com",
"record_type": "A",
"record_value": "176.58.124.228",
"record_ttl": "60",
"is_geo": "no",
"is_failover": "yes"
}, {
"record_id": "12306",
"record_name": "www.example.com",
"record_type": "A",
"record_value": "1.1.1.2",
"record_ttl": "60",
"is_geo": "yes",
"is_failover": "no"
}, {
"record_id": "12307",
"record_name": "xxx.example.com",
"record_type": "AAAA",
"record_value": "0::1:2:4",
"record_ttl": "3600",
"is_geo": "no",
"is_failover": "no"
}, {
"record_id": "12308",
"record_name": "foo.example.com",
"record_type": "CNAME",
"record_value": "example1.com",
"record_ttl": "3600",
"is_geo": "no",
"is_failover": "no"
}, {
"record_id": "12309",
"record_name": "foo1.example.com",
"record_type": "CNAME",
"record_value": "example2.com",
"record_ttl": "3600",
"is_geo": "no",
"is_failover": "no"
}, {
"record_id": "12582",
"record_name": "example.com",
"record_type": "A",
"record_value": "6.6.6.7",
"record_ttl": "3600",
"is_geo": "yes",
"is_failover": "no"
}],
"geo_records": [{
"record_id": "13853",
"record_name": "example.com",
"record_type": "A",
"record_value": "1.1.1.1",
"record_ttl": "3600",
"geo_region": "EU",
"geo_full_region": "Europe"
}, {
"record_id": "65373",
"record_name": "www.example.com",
"record_type": "A",
"record_value": "1.1.1.3",
"record_ttl": "60",
"geo_region": "_AF",
"geo_full_region": "Africa"
}, {
"record_id": "65426",
"record_name": "www.example.com",
"record_type": "A",
"record_value": "1.1.1.100",
"record_ttl": "60",
"geo_region": "_NA",
"geo_full_region": "North America"
}],
"failover_records": [{
"record_id": "11861",
"record_name": "test.example.com",
"record_type": "A",
"record_value": "176.58.124.228",
"record_ttl": "60",
"is_geo": "no",
"is_failover": "yes",
"failover_record_main_value": "176.58.124.228",
"failover_check_type": "HTTP",
"failover_check_interval": "60",
"failover_return_to_main_value": "1",
"failover_notification_email": "",
"failover_notification_sms": "",
"failover_backup_values": [""],
"failover_additional_port": "",
"failover_additional_request": "",
"failover_additional_response": ""
}]
}
}
}