Page tree
Skip to end of metadata
Go to start of metadata

API Essentials

API Key Generation

Autoscaling

Backups

Credit

DNS

Firewall Rules

Flex Cloud VM Control

Getting Started with Superb Flex Cloud

IP Addresses

Logs

Network Interfaces

Recipes

SSH Keys

Templates

Test Route

Troubleshooting API Issues

Viewing Activity Logs

Virtual Server Operating Systems

Virtual Servers

VS Disks

GET /dns_zones/name_servers

Returns a list of name servers

Sections:

Response Parameters

Returns an array of name servers

JSON Request example

 curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url <api_url>/dns_zones/name_servers.json

JSON Response

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

XML Request example

 curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url <api_url>/dns_zones/name_servers.xml

XML Response example

 <strings type="array">
    <string>ns1.superbcloud.net</string>
    <string>ns2.superbcloud.net</string>
    <string>ns3.superbcloud.net</string>
    <string>ns4.superbcloud.net</string>
</strings>
  • No labels