GET api/Zone/{zone_handle}/Record?user={user}
Get records for a zone
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| zone_handle |
Handle of zone |
string |
Required |
| user |
Optional user handle - if empty logged in user will be used |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
List of records on success
Collection of errors on failure
Return codes
200 - ok
401 - unauthorized
404 - not found
500 - internal server error
| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Record id |
integer |
None. |
| ZoneId |
Zone id |
integer |
None. |
| Host |
Host |
string |
Required String length: inclusive between 1 and 200 |
| Data |
Data |
string |
Required String length: inclusive between 1 and 4096 |
| Type |
Record type |
string |
Required String length: inclusive between 1 and 8 |
| Weight |
Weight for MX records |
integer |
None. |
| DateCreated |
Date created |
date |
None. |
| NaptrPreference | string |
None. |
|
| NaptrFlag | string |
None. |
|
| NaptrRegExp | string |
None. |
Response Formats
application/json, text/json
[
{
"Id": 1,
"ZoneId": 2,
"Host": "sample string 3",
"Data": "sample string 4",
"Type": "sample string 5",
"Weight": 1,
"DateCreated": "2025-12-12T19:19:45.5528508+01:00",
"NaptrPreference": "sample string 7",
"NaptrFlag": "sample string 8",
"NaptrRegExp": "sample string 9"
},
{
"Id": 1,
"ZoneId": 2,
"Host": "sample string 3",
"Data": "sample string 4",
"Type": "sample string 5",
"Weight": 1,
"DateCreated": "2025-12-12T19:19:45.5528508+01:00",
"NaptrPreference": "sample string 7",
"NaptrFlag": "sample string 8",
"NaptrRegExp": "sample string 9"
}
]
application/xml, text/xml
<ArrayOfRecord xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Zone">
<Record>
<Data>sample string 4</Data>
<DateCreated>2025-12-12T19:19:45.5528508+01:00</DateCreated>
<Host>sample string 3</Host>
<Id>1</Id>
<NaptrFlag>sample string 8</NaptrFlag>
<NaptrPreference>sample string 7</NaptrPreference>
<NaptrRegExp>sample string 9</NaptrRegExp>
<Type>sample string 5</Type>
<Weight>1</Weight>
<ZoneId>2</ZoneId>
</Record>
<Record>
<Data>sample string 4</Data>
<DateCreated>2025-12-12T19:19:45.5528508+01:00</DateCreated>
<Host>sample string 3</Host>
<Id>1</Id>
<NaptrFlag>sample string 8</NaptrFlag>
<NaptrPreference>sample string 7</NaptrPreference>
<NaptrRegExp>sample string 9</NaptrRegExp>
<Type>sample string 5</Type>
<Weight>1</Weight>
<ZoneId>2</ZoneId>
</Record>
</ArrayOfRecord>