MENU

Description
ドメイン情報を更新する

ドメイン名の変更はできません

Request URL

Designate API v1.0

PUT /v1/domains/(uuid: id)

Request Paramters

Parameter Value Style Type Description
X-Auth-Token - header string Userトークン
domain_id - URI UUID ドメインID
ttl(Optional) [60~2147483647] plain int TTL(秒)
email(Optional) - 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 ドメイン名
domain_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

{
  "ttl": 7200,
  "email": "[email protected]",
  "gslb": 0
}

Normal response codes

200 - OK

Error response codes

400 – Invalid Object
401 – Access Denied
404 – Domain not found
409 – Duplicate Domain

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

  • REQ
curl --include https://dns-service.tyo1.conoha.io/v1/domains/09494b72-b65b-4297-9efb-187f65a0553e \
-X PUT \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \
-d
'{
  "ttl": 7200,
  "email": "[email protected]",
  "gslb": 0
}'
  • RES
HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json
Content-Length: 422
Date: Fri, 02 Nov 2012 01:06:19 GMT

{
  "id": "09494b72-b65b-4297-9efb-187f65a0553e",
  "name": "domain1.com.",
  "email": "[email protected]",
  "ttl": 7200,
  "serial": 1351818367,
  "gslb": 0,
  "created_at": "2012-11-02T00:58:42.000000",
  "updated_at": "2012-11-02T01:06:07.000000",
  "description": "memo"
}