MENU
データベース情報取得 - Database API v1
Description
データベース情報を取得します。
Request URL
Database API v1.0 GET /v1/databases/(uuid: database_id)
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | string | Userトークン |
database_id | - | URI | UUID | データベースID |
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/pending/creating/deleting/error | plain | string | ステータス |
Request Json
Normal response codes
200 - Success
Error response codes
400 - Bad Request
401 - Access Denied
404 - Not Found
Repeatable
Yes
Example
※エンドポイントURLにつきましては、お客様環境によって異なりますので、コントロールパネルにてご確認の上ご利用ください。
- REQ
curl -i -X GET \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "X-Auth-Token: 39be9f8d53044388b7f2e867eba8b140" \ 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" } }