Domains-domainName-hosts:GET

From Hostway API Documentation
Jump to: navigation, search

GET /domains/{domainName}/hosts

Get the current hosts in a domain.

Contents

Request

GET /domains/{domainName}/hosts

Parameters

None.

URI Parameters

domainName - string
The domain name. IE: example.com is a valid domain name, whereas http://www.example.com or www.example.com are not. If the domain name is invalid, or is otherwise not registerable such as for a non-existent or non-supported TLD, an error will be returned. Domain names are case insensitive. The domain name must be an open or suspended product under the authenticated franchise.

Request Headers

None.

Request Body

None.

Response

Status Code

200 OK
Returns the hosts
404 Not Found
No domain records found for the given domain name.
500 Internal Server Error
An error has occurred with the registry.


Response Body

The hosts in a domain.

Example of getting the domain authorization code.

Request

GET /domains/example.com/hosts

 

Response

200 OK
Content-Type: application/json; charset=UTF-8

{"hosts": [{
   "name": "ns1.ng-test-fitnesse-20130202-0605.com",
   "address": "133.45.67.1"}, {
   "name": "ns2.ng-test-fitnesse-20130202-0605.com",
   "address": "133.45.67.2"}]}
 

See also


blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox