MENU

Description
ドメインを作成する

Request URL

Designate API v1.0

POST /v1/domains

Request Paramters

Parameter Value Style Type Description
X-Auth-Token - header string Userトークン
name - plain string ドメイン名
ttl(Optional) [60~2147483647] plain int TTL(秒)
email - plain string Eメールアドレス
description(Optional) - plain string 備考
gslb(Optional) [0:OFF/1:ON] plain string GSLB機能の有効/無効

Response Paramters

Parameter Value Style Type Description
created_at - plain string 作成日
updated_at - plain string 更新日
name - plain string ドメイン名
id - plain UUID ドメインID
ttl - plain int TTL(秒)
serial - plain int シリアル値
email - plain string Eメールアドレス
description - plain string 備考
gslb [0:OFF/1:ON] plain string GSLB機能の有効/無効

Request Json

{
  "name": "domain1.com.",
  "ttl": 3600,
  "email": "[email protected]",
  "gslb": 0
}

Normal response codes

200 - OK

Error response codes

401 – Access Denied
400 – Invalid Object
409 – Duplicate Domain

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

  • REQ
curl --include https://dns-service.tyo1.conoha.io/v1/domains \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \
-d
'{
  "name": "domain1.com.",
  "ttl": 3600,
  "email": "[email protected]",
  "gslb": 0
}'
  • RES
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json

{
  "id": "89acac79-38e7-497d-807c-a011e1310438",
  "name": "domain1.com.",
  "ttl": 3600,
  "serial": 1351800588,
  "email": "[email protected]",
  "gslb": 0,
  "created_at": "2012-11-01T20:09:48.094457",
  "description": "memo"
}