MENU
アカウント情報取得 - Database API v1
Description
データベースのアカウント情報を取得します。
Request URL
Database API v1.0 GET /v1/users/(uuid: user_id)
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | Userトークン | |
user_id | - | URI | UUID | ユーザーID |
Response Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
user | - | plain | dict | - |
databases | - | plain | list | 権限付与したデータベース情報 |
database_id | - | plain | UUID | データベースID |
db_name | - | plain | string | データベース名 |
service_id | - | plain | UUID | サービスID |
hostname | - | plain | string | 接続元ホスト名 |
memo | - | plain | string | メモ |
user_id | - | plain | UUID | ユーザーID |
user_name | - | plain | string | ユーザー名 |
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/users/5f02c821-977f-4160-812d-397a5e3c7caa
- RES
HTTP/1.1 200 Success Date: Tue, 09 Dec 2014 01:46:58 GMT Server: Apache Content-Length: 1003 Content-Type: application/json { "user": { "databases": [ { "database_id": "148147ba-8999-4901-9cd6-634db82f80ea", "db_name": "02p8y_db0001" }, { "database_id": "f2d55856-ee66-4efb-9663-a501f3f29edb", "db_name": "02p8y_db0003" } ], "service_id": "9d6441f6-c5a0-4dcf-a1a9-1a4d724e51fd", "hostname": "host01.example.jp", "memo": "memo", "user_id": "5f02c821-977f-4160-812d-397a5e3c7caa", "user_name": "02p8y_dbuser001", "status": "active" } }