MENU
データベース権限一覧取得 - Database API v1
Description
データベースに紐ついた権限の一覧を取得します。
Request URL
Database API v1.0 GET /v1/databases/(uuid: database_id)/grant
Request Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
X-Auth-Token | - | header | string | Userトークン |
database_id | - | URI | UUID | データベースID |
offset(Optional) | - | query | int | 取得開始位置 Default:0 |
limit(Optional) | - | query | int | 取得数 Default:1000 |
sort_key(Optional) | status/create_date | query | string | ソートキー Default:create_date |
sort_type(Optional) | asc/desc | query | string | ソート順 Default:asc |
Response Paramters
Parameter | Value | Style | Type | Description |
---|---|---|---|---|
grant | - | - | list | - |
user_id | - | plain | UUID | ユーザーID |
status | active/creating/deleting/error | plain | string | 権限ステータス (ユーザーのステータスではない) |
total_count | - | plain | int | 総件数 |
current_count | - | plain | int | 現在の取得件数 |
Request Json
This operation does not accept a request body.
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/grant
- RES
HTTP/1.1 200 Success Date: Tue, 09 Dec 2014 01:46:58 GMT Server: Apache Content-Length: 1003 Content-Type: application/json { "grant" : [ { "user_id": "5f02c821-977f-4160-812d-397a5e3c7caa", "status": "active" }, { "user_id": "c5f4ce2d-8b17-4387-a06c-9ea9c8d71406", "status": "pending" } ], "total_count":100, "current_count":10 }