Query name servers in a public zone.
GET /v2/zones/{zone_id}/nameservers
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
zone_id |
Yes |
String |
Zone ID You can obtain the value by calling the API in Querying Public Zones. |
Parameter |
Type |
Description |
---|---|---|
nameservers |
Array of object |
Name server list. For details, see Table 3. |
{ "nameservers": [ { "hostname": "ns1.example.com.", "priority": 1 }, { "hostname": "ns2.example.com.", "priority": 2 } ] }
If a 2xx status code is returned, for example, 200, 202, or 204, the request is successful.
For details, see Status Code.