GET api/Zone/{zone_handle}/NsPubKey?user={user}
Get ns public keys associated to the zone object
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| zone_handle |
Handle od the 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 nsPubkeys 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 | integer |
None. |
|
| ZoneName |
Name of the zone |
string |
None. |
| KeyTag | string |
None. |
|
| PubKey | string |
None. |
|
| DateInsert | date |
None. |
|
| NbNs |
Namebay hosted |
boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"ZoneName": "sample string 2",
"KeyTag": "sample string 3",
"PubKey": "sample string 4",
"DateInsert": "2025-12-12T19:19:46.1941681+01:00",
"NbNs": true
},
{
"Id": 1,
"ZoneName": "sample string 2",
"KeyTag": "sample string 3",
"PubKey": "sample string 4",
"DateInsert": "2025-12-12T19:19:46.1941681+01:00",
"NbNs": true
}
]
application/xml, text/xml
Sample:
<ArrayOfNsPubKey xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models.Zone">
<NsPubKey>
<DateInsert>2025-12-12T19:19:46.1941681+01:00</DateInsert>
<Id>1</Id>
<KeyTag>sample string 3</KeyTag>
<NbNs>true</NbNs>
<PubKey>sample string 4</PubKey>
<ZoneName>sample string 2</ZoneName>
</NsPubKey>
<NsPubKey>
<DateInsert>2025-12-12T19:19:46.1941681+01:00</DateInsert>
<Id>1</Id>
<KeyTag>sample string 3</KeyTag>
<NbNs>true</NbNs>
<PubKey>sample string 4</PubKey>
<ZoneName>sample string 2</ZoneName>
</NsPubKey>
</ArrayOfNsPubKey>