projects/{project_id}/users/{user_id}/roles)
指定されたプロジェクトとユーザー間に付与されているロールの一覧を表示する。
Request Headers Content-type
MIME仕様で定義されているコンテントの形式を示す。
application/jsonを指定する。(必須項目)
Data Type Cardinality
xsd:string 1..1
Accept
MIME仕様で定義されているアクセプトの形式を示す。
application/jsonを指定する。(省略可)
Data Type Cardinality
xsd:string 1..1
X-Auth-Token 有効な認証トークン
Data Type Cardinality
xsd:string 1..1
Request Parameter project_id
プロジェクトID(必須項目)
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 なし None
user_id
ユーザーID(必須項目)
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 なし None
Response Headers HTTPステータスコード
リクエストのHTTPステータスコードを返却する。
以下の値を返却する。
200: 正常終了
400: 不正なアクセス(パラメーター不正等)
401: 認証エラー
403: アクセス不可(権限がない)
404: 該当資源なし
409: データ競合が発生
500: 予期せぬエラー
501: 実装されていない
503: サービス利用不可
Data Type Cardinality
int 1..1
Vary
以下のヘッダーを設定または変更することで、別のファイル形式で表現を要求できることを通知す る。
X-Auth-Token
Data Type Cardinality
xsd:string 1..1
Content-Type
MIME仕様で定義されているコンテントの形式を示す。
application/json
Data Type Cardinality
xsd:string 1..1
Content-Length
エンティティの長さをバイトで示す。
Data Type Cardinality
int 1..1
Date
作成された日付を示す。
Data Type Cardinality
date 1..1
Response Elements roles
rolesオブジェクト
Data Type Cardinality Parent Element Child Element(s)
Element 1..1 なし (role)
(role)
roleオブジェクト(無名オブジェクト)
Data Type Cardinality Parent Element Child Element(s)
Element 1..n roles id
links name enabled description
id ロールID
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 (role) None
links
ロールのリンク情報
Data Type Cardinality Parent Element Child Element(s)
Element 1..1 (role) self
name ロール名
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 (role) None
enabled 有効設定
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 (role) None
description ロールの説明
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 (role) None
links
APIのリンク情報
Data Type Cardinality Parent Element Child Element(s)
Element 1..1 なし self
previous next
Example of Request
GET /v3/projects/--project-id--/users/--user-id--/roles X-Auth-Token: MIIIHgYJKoZIhvcNAQcCoIIIDzCCCAsCAQExC(省略)
Example of Response {
"roles": [ {
"id": "--role-id--", "links": {
"self": "http://identity.jp-east-1.cloud.global.fujitsu.com/v3/roles/--role-id--"
},
"name": "cpf_observer"
} ],
"links": {
"self": "http://identity.jp-east-1.cloud.global.fujitsu.com/v3/projects/--project-id--/users/--user-id--/roles",
"previous": null, "next": null }
}
1.1.5.37 プロジェクトとグループ間のロール参照(一覧) (GET / v3/projects/{project_id}/groups/{group_id}/roles)
指定されたプロジェクトとグループ間に付与されているロールの一覧を表示する。
Request Headers Content-type
MIME仕様で定義されているコンテントの形式を示す。
application/jsonを指定する。(必須項目)
Data Type Cardinality
xsd:string 1..1
Accept
MIME仕様で定義されているアクセプトの形式を示す。
application/jsonを指定する。(省略可)
Data Type Cardinality
xsd:string 1..1
X-Auth-Token 有効な認証トークン
Data Type Cardinality
xsd:string 1..1
Request Parameter project_id
プロジェクトID(必須項目)
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 なし None
group_id
グループID(必須項目)
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 なし None
Response Headers HTTPステータスコード
リクエストのHTTPステータスコードを返却する。
以下の値を返却する。
200: 正常終了
400: 不正なアクセス(パラメーター不正等)
401: 認証エラー
403: アクセス不可(権限がない)
404: 該当資源なし
409: データ競合が発生
500: 予期せぬエラー
501: 実装されていない
503: サービス利用不可
Data Type Cardinality
int 1..1
Vary
以下のヘッダーを設定または変更することで、別のファイル形式で表現を要求できることを通知す る。
X-Auth-Token
Data Type Cardinality
xsd:string 1..1
Content-Type
MIME仕様で定義されているコンテントの形式を示す。
application/json
Data Type Cardinality
xsd:string 1..1
Content-Length
エンティティの長さをバイトで示す。
Data Type Cardinality
int 1..1
Date
作成された日付を示す。
Data Type Cardinality
date 1..1
Response Elements roles
rolesオブジェクト
Data Type Cardinality Parent Element Child Element(s)
Element 1..1 なし (role)
(role)
roleオブジェクト(無名オブジェクト)
Data Type Cardinality Parent Element Child Element(s)
Element 1..n roles id
links name enabled description
id ロールID
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 (role) None
links
ロールのリンク情報
Data Type Cardinality Parent Element Child Element(s)
Element 1..1 (role) self
name ロール名
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 (role) None
enabled 有効設定
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 (role) None
description ロールの説明
Data Type Cardinality Parent Element Child Element(s)
xsd:string 1..1 (role) None
links
APIのリンク情報
Data Type Cardinality Parent Element Child Element(s)
Element 1..1 なし self
previous next
Example of Request
GET /v3/projects/--project-id--/groups/--group-id--/roles X-Auth-Token: MIIIHgYJKoZIhvcNAQcCoIIIDzCCCAsCAQExC(省略)
Example of Response {
"roles": [ {
"id": "--role-id--", "links": {
"self": "http://identity.jp-east-1.cloud.global.fujitsu.com/v3/roles/--role-id--"
},
"name": "--role-name--", },
{
"id": "--role-id--", "links": {
"self": "http://identity.jp-east-1.cloud.global.fujitsu.com/v3/roles/--role-id--"
},
"name": "--role-name--"
} ],
"links": {
"self": "http://identity.jp-east-1.cloud.global.fujitsu.com /v3/projects/--project_id--/groups/--group_id--/roles", "previous": null,
"next": null }
}