查询资源的协同授权记录列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ResourceId |
string |
是 |
要授权的资源 ID。 |
al*************7ufv |
| WorksType |
string |
是 |
授权资源的类型:
|
REPORT |
| ShareToType |
integer |
是 |
查询粒度:
重要 组织和工作空间的授权记录返回在用户粒度中,数据集和数据源只能授权给用户 |
0 |
| HasAuth |
boolean |
是 |
是否仅查询拥有权限的记录。 |
true |
| Keyword |
string |
否 |
被授权对象搜索关键词。 |
test |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID |
019FA14C-ED6B-5F39-8563-855676470C47 |
| Result |
array<object> |
授权详情集合 |
|
|
object |
授权详情 |
||
| Authorities |
array |
拥有的权限数组 |
|
|
string |
拥有的权限。取值范围:
|
READ |
|
| AuthorizedId |
string |
被授权人 ID |
123123**dfsd |
| AuthorizedName |
string |
被授权人的名称 |
sss |
| ExpireDate |
string |
过期时间 |
1788969600000 |
| GmtCreate |
string |
权限记录的创建时间,格式 yyyy-MM-dd mm:hh:ss。 |
2024-04-16 13:17:39 |
| ResourceId |
string |
资源 ID。 |
123123**dfsd |
| ResourceType |
string |
资源类型。取值范围:
|
cube |
| Scope |
integer |
授权范围。取值范围:
|
0 |
| Success |
boolean |
请求是否成功 |
true |
示例
正常返回示例
JSON格式
{
"RequestId": "019FA14C-ED6B-5F39-8563-855676470C47",
"Result": [
{
"Authorities": [
"READ"
],
"AuthorizedId": "123123**dfsd",
"AuthorizedName": "sss",
"ExpireDate": "1788969600000",
"GmtCreate": "2024-04-16 13:17:39",
"ResourceId": "123123**dfsd",
"ResourceType": "cube",
"Scope": 0
}
],
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Internal.System.Error | An internal system error occurred. | 系统内部异常。 |
| 400 | Invalid.Parameter.Error | The parameter is invalid:%s. | 无效参数%s。 |
| 400 | Cube.Not.Exist | The Cube does not exist. | 数据集不存在。 |
| 400 | Datasource.NotFound.Error | The specified data source does not exist: %s. | 数据源不存在:%s。 |
| 400 | Work.Not.Exist | The work does not exist. | 作品不存在。 |
| 500 | Authorize3Rd.Page.Org.Illegal | The report does not match the organization. | 报表与组织不匹配。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。