Update databases.

Request URL

Database API v1.0

PUT /v1/databases/(uuid: database_id)

Request Paramters

Parameter Value Style Type Description
X-Auth-Token - header string User Token
database_id - URI UUID Database ID
memo - plain string Memo Dafault:(space ※when there's no value.)  The type of characters allowed:All ASCII characters that can be printed. The length of characters : 255

Response Paramters

Parameter Value Style Type Description
database - - dict -
service_id - plain UUID Service ID
database_id - plain UUID Database ID
internal_hostname - plain string Internal Hostname (private)
external_hostname - plain string External Hostname (global)
db_name - plain string Database Name
db_size - plain float Size of Database(unit:GB)It displays the number with two decimal point.
memo - plain string Memo
type - plain string Database Type
charset - plain string Character Cord for Database
status active plain string Status

Request Json

    "memo": "memo"

Normal response codes

200 - Success

Error response codes

401 - Access Denied
404 - Not Found




curl -i -X POST \
-H "Accept: application/json" \
-H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \
    "memo": "memo"
}' \
HTTP/1.1 200 Success
Date: Tue, 09 Dec 2014 01:46:58 GMT
Server: Apache
Content-Length: 1003
Content-Type: application/json

    "database" : {
        "service_id": "9d6441f6-c5a0-4dcf-a1a9-1a4d724e51fd",
        "database_id": "148147ba-8999-4901-9cd6-634db82f80ea",
        "internal_hostname": "",
        "external_hostname": "",
        "db_name": "02p8y_dbname01",
        "db_size": 2,
        "memo": "memo",
        "type": "mysql",
        "charset": "utf8",
        "status": "active"