Description
Update domains.
Request URL
Designate API v1.0 PUT /v1/domains/(uuid: id)
Request Paramters
| Parameter | Value | Style | Type | Description |
|---|---|---|---|---|
| X-Auth-Token | - | header | string | User Token |
| domain_id | - | URI | UUID | Domain ID |
| ttl(Optional) | - | plain | int | TTL(second) |
| email(Optional) | - | plain | string | Email Address |
| description(Optional) | - | plain | string | Description |
| gslb(Optional) | [0:OFF/1:ON] | plain | string | Enable/Disable GSLB |
Response Paramters
| Parameter | Value | Style | Type | Description |
|---|---|---|---|---|
| created_at | - | plain | string | Creation Date |
| updated_at | - | plain | string | Update Date |
| name | - | plain | string | Domain Name |
| domain_id | - | plain | UUID | Domain ID |
| ttl | - | plain | int | TTL(second) |
| serial | - | plain | int | Serial Number |
| - | plain | string | Email Address | |
| description | - | plain | string | Description |
| gslb | [0:OFF/1:ON] | plain | string | Enable/Disable GSLB |
Request Json
{
"ttl": 7200,
"email": "nsadmin@example.org",
"gslb": 0
}
Normal response codes
200 - OK
Error response codes
400 – Invalid Object
401 – Access Denied
404 – Domain not found
409 – Duplicate Domain
Example
curl --include https://dns-service.tyo1.cloud.z.com/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": "nsadmin@example.org",
"gslb": 0
}'
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": "nsadmin@example.org",
"ttl": 7200,
"serial": 1351818367,
"gslb": 0,
"created_at": "2012-11-02T00:58:42.000000",
"updated_at": "2012-11-02T01:06:07.000000",
"description": "memo"
}