Description
List domains.

Request URL

Designate API v1.0

GET /v1/domains

Request Paramters

Parameter Value Style Type Description
X-Auth-Token - header string User Token
name(Optional) Default:None query string Domain Name

Response Paramters

Parameter Value Style Type Description
domains - - list -
id - plain string Domain ID
name - plain string Domain Name
created_at - plain string Creation Date
updated_at - plain string Update Date
email - plain string Email Address
ttl - plain int TTL (second)
serial - plain int Serial Number
description - plain string Description
gslb [0:OFF/1:ON] plain string Enable/Disable GSLB

Request Json



Normal response codes

200 - OK

Error response codes

400 – Invalid Object
401 – Access Denied

Example

curl --include https://dns-service.tyo1.cloud.z.com/v1/domains
-X GET
-H "Accept: application/json"
-H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140"
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json

{
    "domains":[
      {
        "id": "09494b72-b65b-4297-9efb-187f65a0553e",
        "name": "domain1.com.",
        "ttl": 3600,
        "serial": 1351800668,
        "email": "nsadmin@example.org",
        "gslb": 0,
        "created_at": "2012-11-01T20:11:08.000000",
        "updated_at": null,
        "description": "memo"
      },
      {
        "id": "cf661142-e577-40b5-b3eb-75795cdc0cd7",
        "name": "domain2.com.",
        "ttl": 7200,
        "serial": 1351800670,
        "email": "nsadmin2@example.org",
        "gslb": 1,
        "created_at": "2012-11-01T20:11:08.000000",
        "updated_at": "2012-12-01T20:11:08.000000",
        "description": "memomemo"
      }
    ]
}