Listing all replication DNS zones¶
Note
The replication DNS zones are available to organisations with the DNSZones feature only.
Note
The attribute tsigKey is never returned. The system accepts the key but does not send it back.
Sends a GET request to the endpoint /replication-dns/zones.
Description¶
The List-Replication-DNS-Zones request allows the user to request a list of all replication DNS zones of the organisation.
A replication DNS zone is a DNS zone whose content Myra transfers from a master name server of the organisation. The zone is not maintained in the Myra App, but on the master name server.
Requirements¶
Values of the request: none
Objects: none
Request¶
To request a list of all replication DNS zones, no further information needs to be added to the path of the request.
As a result, the user gets one or more objects ReplicationDnsZoneVO with the requested information.
The object provides the following information:
| Attributes | Description | Values |
|---|---|---|
zoneName |
The name of the zone as a fully qualified domain name. | string |
label |
The label of the entry. It is identical to the value of the attribute zoneName. |
string |
replicationMethod |
The method Myra uses to transfer the zone from the master name server. |
|
masters |
An array with the IP addresses of the master name servers Myra transfers the zone from. | array |
tsigKeyName |
The name of the TSIG key that protects the zone transfer. | string |
tsigKeyAlgorithm |
The algorithm of the TSIG key. |
|
id |
The ID of the entry. | integer |
modified |
The last modification date in ISO 8601 format. | string($date-time) |
created |
The creation date in ISO 8601 format. | string($date-time) |
The List-Replication-DNS-Zones request allows you to filter the output by adding the following parameters to the path of the request:
| Parameters | Description | Values |
|---|---|---|
search |
Filters the results by a value. | a string |
replicationMethod |
Filters the results by the transfer method. |
|
sort |
Sorts the results by an attribute. | a string |
page |
Specifies the page of the result list. | integer |
pageSize |
Specifies the number of entries per page. The value -1 returns all entries in one response. |
integer |
Example¶
Example response:
[
{
"objectType": "string",
"zoneName": "string",
"label": "string",
"replicationMethod": "string",
"masters": [
"string"
],
"tsigKeyName": "string",
"tsigKeyAlgorithm": "string",
"id": 0,
"modified": "string",
"created": "string"
}
]
Responses¶
The following responses are available:
| STATUS CODE | DESCRIPTION |
|---|---|
| 200 | The request has succeeded. |
| 400 | The request was unsuccessful. The request was invalid or information is missing. |
| 401 | The request has not succeeded because the user authentication was incorrect. |
| 403 | The request has not succeeded because the user does not have the right permissions. |