Query name servers in a private 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 Private Zones. |
Parameter |
Type |
Description |
|---|---|---|
nameservers |
Array of object |
Name server list object For details, see Table 3. |
{
"nameservers": [
{
"priority": 1,
"address": "100.125.0.81"
},
{
"priority": 2,
"address": "100.125.0.82"
}
]
}
If the API call returns a code of 2xx, for example, 200, 202, or 204, the request is successful.
For details, see Status Code.