MENU

Description
ドメインのレコード一覧を表示する

Request URL

Designate API v1.0

GET /v1/domains/(uuid: domain_id)/records

Request Paramters

Parameter Value Style Type Description
X-Auth-Token - header string Userトークン
domain_id - URI UUID ドメインID

Response Paramters

Parameter Value Style Type Description
records - - list -
domain_id - plain UUID ドメインID
id - plain UUID レコードID
name - plain string レコード名
type - plain string レコードタイプ
created_at - plain string 作成日
updated_at - plain string 更新日
priority - plain int 優先度
ttl - plain int TTL(秒)
data - plain string レコード値
description - plain string 備考
gslb_region [JP/US/SG] plain string GSLBリージョンコード
gslb_weight [0~255] plain int GSLB優先度
gslb_check [0:OFF/PortNo.] plain int GSLBヘルスチェックポート

Request Json



Normal response codes

200 - OK

Error response codes

401 – Access Denied

Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。

  • REQ
curl --include https://dns-service.tyo1.conoha.io/v1/domains/89acac79-38e7-497d-807c-a011e1310438/records \
-X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140"
  • RES
HTTP/1.1 200 OK
Server: openresty/1.7.10.1
Content-Type: application/json
Content-Length: 1209
Date: Sun, 04 Nov 2012 13:58:21 GMT

{
  "records": [
    {
      "id": "2e32e609-3a4f-45ba-bdef-e50eacd345ad",
      "name": "www.example.com.",
      "type": "A",
      "ttl": 3600,
      "created_at": "2012-11-02T19:56:26.000000",
      "updated_at": "2012-11-04T13:22:36.000000",
      "data": "15.185.172.153",
      "domain_id": "89acac79-38e7-497d-807c-a011e1310438",
      "version": 1,
      "gslb_region": "JP",
      "gslb_weight": 250,
      "gslb_check": 12300
    },
    {
      "id": "8e9ecf3e-fb92-4a3a-a8ae-7596f167bea3",
      "name": "host1.example.com.",
      "type": "A",
      "ttl": 3600,
      "created_at": "2012-11-04T13:57:50.000000",
      "updated_at": null,
      "data": "15.185.172.154",
      "domain_id": "89acac79-38e7-497d-807c-a011e1310438",
      "version": 1,
      "gslb_region": "US",
      "gslb_weight": 220,
      "gslb_check": 12200
    },
    {
      "id": "4ad19089-3e62-40f8-9482-17cc8ccb92cb",
      "name": "web.example.com.",
      "type": "CNAME",
      "ttl": 3600,
      "created_at": "2012-11-04T13:58:16.393735",
      "updated_at": null,
      "data": "www.example.com.",
      "domain_id": "89acac79-38e7-497d-807c-a011e1310438",
      "version": 1
    }
  ]
}