Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Children Display
alltrue
styleh3
pageSuperb Cloud API

GET /dns_zones/name_servers

Returns a list of name servers

Sections:

Table of Contents
maxLevel4
minLevel2
includeResponse.*|JSON.*|XML.*|Explanation.*

Response Parameters

Returns an array of name servers

JSON Request example

Code Block
languagebash
themeRDark
 curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url https://mycp.superb.net/api/<api_url>/dns_zones/name_servers.json

JSON Response

Code Block
 [
    "ns1.superbcloud.net",
    "ns2.superbcloud.net",
    "ns3.superbcloud.net",
    "ns4.superbcloud.net"
]

XML Request example

Code Block
languagebash
themeRDark
 curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url https://mycp.superb.net/api/<api_url>/dns_zones/name_servers.xml

XML Response example

Code Block
languagexml
 <strings type="array">
    <string>ns1.superbcloud.net</string>
    <string>ns2.superbcloud.net</string>
    <string>ns3.superbcloud.net</string>
    <string>ns4.superbcloud.net</string>
</strings>