数据门户菜单的批量授权,已经授权的会自动略过。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
quickbi-public:AuthorizeMenu |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| DataPortalId |
string |
是 |
数据门户的 ID。 |
0d173abb53e84c8ca7495429163b**** |
| MenuIds |
string |
是 |
数据门户的叶子节点菜单 ID。
|
54kqgoa****,pg1n135**** |
| UserGroupIds |
string |
否 |
用户组 ID 列表。
|
34fd141d-4598-4093-8c33-8e066dcb****,3d2c23d4-2b41-4af8-a1f5-f6390f32**** |
| UserIds |
string |
否 |
用户 ID 列表。此处为 Quick BI 的 UserID,而非阿里云的 UID。
|
204627493484****,121344444790**** |
| AuthPointsValue |
integer |
否 |
授权菜单的权限。取值范围:
|
3 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
188F0B12-00EF-41B3-944A-FB7EF06C9F43 |
| Result |
integer |
授权成功的菜单数。 |
2 |
| Success |
boolean |
是否请求成功。取值范围:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "188F0B12-00EF-41B3-944A-FB7EF06C9F43",
"Result": 2,
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Report.NotExist.Error | This work does not exist. It may have been deleted. Work ID is %s. | |
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | |
| 400 | AccessMenu.NotMatch.Portal | The menu does not match the BI portal. | |
| 400 | FolderMenu.CanNot.Authorize | The folder type menu cannot be authorized. Menu ID: %s. | |
| 400 | Menu.NotBelongTo.CurrentDataportal | Menu %s does not belong to the current data portal %s. | |
| 400 | User.NotBelongTo.CurrentOrganization | The user %s does not belong to the current organization. | |
| 400 | Usergroup.NotBelongTo.CurrentOrganization | The usergroup %s does not belong to the current organization. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。