统一身份认证服务 IAM
统一身份认证服务 IAM
- 最新动态
- 功能总览
- 产品介绍
- 快速入门
- 用户指南
- 最佳实践
- API参考
- SDK参考
- 常见问题
-
更多文档
- 用户指南(阿布扎比区域)
- API 参考(阿布扎比区域)
- 用户指南(巴黎区域)
- API参考 (巴黎区域)
- 用户指南(吉隆坡区域)
- API参考(吉隆坡区域)
- 用户指南(安卡拉区域)
- API参考(安卡拉区域)
- 产品术语
- 通用参考
链接复制成功!
查询委托在项目上具有的权限列表
功能介绍
该接口用来查询委托在项目上具有的权限列表。
URI
- URI参数说明
参数
是否为必选
类型
说明
project_id
是
String
当前租户下的项目ID。
agency_id
是
String
委托的ID。
请求消息
- Request Header参数说明
参数
是否为必选
类型
说明
Content-Type
是
String
该字段内容填为“application/json;charset=utf8”。
X-Auth-Token
是
String
已认证的拥有Security Administrator权限的token。
- 请求样例
curl -i -k -H "X-Auth-Token:$token" -H 'Content-Type:application/json;charset=utf8' -X GET https:///v3.0/OS-AGENCY/projects/0945241c5ebc4660bac540d48f2a2c14/agencies/37f90258b820472bbc8a0f4f0bfd720d/roles
响应消息
- Response Body参数说明
参数
是否为必选
类型
说明
roles
是
Array
role的列表。
- role格式说明
参数
是否为必选
类型
说明
id
是
String
role的ID。
name
是
String
role的名称。
domain_id
是
String
role所属的租户的ID。
type
是
String
role的显示模式,其中:
- AX表示在domain层显示
- XA表示在project层显示
- AA表示在domain和project层均显示
- XX表示在domain和project层均不显示
display_name
是
String
role所展示名称。
catalog
是
String
role所在的目录。
policy
是
Dict
role的具体策略。
description
是
String
role的描述。
- 响应样例(请求成功)
{ "roles": [ { "catalog": "BASE", "display_name": "Tenant Guest", "name": "readonly", "policy": { "Version": "1.0", "Statement": [ { "Action": [ "::Get", "::List" ], "Effect": "Allow" }, { "Action": [ "identity:*" ], "Effect": "Deny" } ] }, "domain_id": null, "type": "AA", "id": "b32d99a7778d4fd9aa5bc616c3dc4e5f", "description": "Tenant Guest" } ] }
- 响应样例(请求失败)
{ "error": { "message": "You are not authorized to perform the requested action: identity:list_domain_grants", "code": 403, "title": "Forbidden" } }
状态码
状态码 |
说明 |
---|---|
200 |
请求成功。 |
401 |
认证失败。 |
403 |
鉴权失败。 |
404 |
未找到相应的资源。 |
500 |
内部服务错误。 |
父主题: 委托管理