MENU

Description
データベース情報を更新します。

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トークン
database_id - URI UUID データベースID
memo - plain string メモ。省略時変更なし、値が空の場合、空白  文字種:印字可能なASCII文字 文字長:255

Response Paramters

Parameter Value Style Type Description
database - - dict -
service_id - plain UUID サービスID
database_id - plain UUID データベースID
internal_hostname - plain string 接続先(プライベート)
external_hostname - plain string 接続先(グローバル)
db_name - plain string データベース名
db_size - plain float 使用DB容量(GB単位)、小数点第二位まで表示
memo - plain string メモ
type - plain string DBタイプ
charset - plain string DB文字コード
status active plain string ステータス

Request Json

{
    "memo": "memo"
}

Normal response codes

200 - Success

Error response codes

401 - Access Denied
404 - Not Found

Repeatable

Yes

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

  • REQ
curl -i -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \
-d
'{
    "memo": "memo"
}' \
https://database-hosting.tyo1.conoha.io/v1/databases/148147ba-8999-4901-9cd6-634db82f80ea
  • RES
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": "private.02p8y.tyo1.database-hosting.conoha.io",
        "external_hostname": "public.02p8y.tyo1.database-hosting.conoha.io",
        "db_name": "02p8y_dbname01",
        "db_size": 2,
        "memo": "memo",
        "type": "mysql",
        "charset": "utf8",
        "status": "active"
    }
}