forked from docs/doc-exports
Reviewed-by: Hajba, László Antal <laszlo-antal.hajba@t-systems.com> Co-authored-by: Qin Ying, Fan <fanqinying@huawei.com> Co-committed-by: Qin Ying, Fan <fanqinying@huawei.com>
8.1 KiB
8.1 KiB
Querying Name Servers in a Public Zone
Function
Query name servers in a public zone.
URI
GET /v2/zones/{zone_id}/nameservers
For details, see Table 1.
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
zone_id |
Yes |
String |
Zone ID You can obtain the value by calling the API in Querying Public Zones. |
Request
Response
- Parameter description
Table 2 Parameter in the response Parameter
Type
Description
nameservers
Array of object
Name server list. For details, see Table 3.
- Example response
{ "nameservers": [ { "hostname": "ns1.example.com.", "priority": 1 }, { "hostname": "ns2.example.com.", "priority": 2 } ] }
Returned Value
If a 2xx status code is returned, for example, 200, 202, or 204, the request is successful.
For details, see Status Code.
Parent topic: Public Zone Management