AuthorizeMenu接口用于数据门户菜单的批量授权。支持多个菜单多个授权对象的组合新增。注意,此为增量操作,已经授权的会自动略过。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | AuthorizeMenu | 
                               要执行的操作。取值:AuthorizeMenu。  | 
                           
                        
| DataPortalId | String | 是 | 0d173abb53e84c8ca7495429163b**** | 
                               数据门户的ID。  | 
                           
                        
| MenuIds | String | 是 | 54kqgoa****,pg1n135**** | 
                               数据门户的叶子节点菜单ID。 
  | 
                           
                        
| UserGroupIds | String | 否 | 34fd141d-4598-4093-8c33-8e066dcb****,3d2c23d4-2b41-4af8-a1f5-f6390f32**** | 
                               用户组ID列表。 
  | 
                           
                        
| UserIds | String | 否 | 204627493484****,121344444790**** | 
                               用户ID列表。此处为Quick BI的UserID,而非阿里云的UID。 
  | 
                           
                        
| AuthPointsValue | Integer | 否 | 3 | 
                               授权菜单的权限。取值范围: 
  | 
                           
                        
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| RequestId | String | 188F0B12-00EF-41B3-944A-FB7EF06C9F43 | 
                               请求ID。  | 
                           
                        
| Result | Integer | 2 | 
                               授权成功的菜单数。  | 
                           
                        
| Success | Boolean | true | 
                               是否请求成功。取值范围: 
  | 
                           
                        
示例
请求示例
http(s)://quickbi-public.aliyuncs.com/?Action=AuthorizeMenu
&DataPortalId=0d173abb53e84c8ca7495429163b****
&MenuIds=54kqgoa****,pg1n135****
&UserGroupIds=34fd141d-4598-4093-8c33-8e066dcb****,3d2c23d4-2b41-4af8-a1f5-f6390f32****
&UserIds=204627493484****,121344444790****
&AuthPointsValue=3
&公共请求参数
                  正常返回示例
XML格式
                  
HTTP/1.1 200 OK
Content-Type:application/xml
<AuthorizeMenuResponse>
    <RequestId>188F0B12-00EF-41B3-944A-FB7EF06C9F43</RequestId>
    <Result>2</Result>
    <Success>true</Success>
</AuthorizeMenuResponse>
                  JSON格式
                  
HTTP/1.1 200 OK
Content-Type:application/json
{
  "RequestId" : "188F0B12-00EF-41B3-944A-FB7EF06C9F43",
  "Result" : 2,
  "Success" : true
}
                  错误码
| HttpCode | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 500 | Instance.Expired | Your instance has expired. | 您的购买实例已经过期。 | 
| 500 | Instance.Not.Exist | The specified instance does not exist. | 暂未匹配到您的购买实例。 | 
| 500 | Access.Forbidden | Access forbidden. Your instance version or access key is not allowed to call the API operation. | 访问被禁止,您的实例版本或者 AccessKey不允许调用该 API。 | 
| 500 | Invalid.Organization | The specified organizational unit does not exist. | 该组织不存在。 | 
| 500 | User.Not.In.Organization | The specified user is not in the organizational unit. | 该用户不在组织中。 | 
| 500 | Invalid.Parameter.Error | The parameter is invalid:%s. | 无效参数%s。 | 
| 500 | Report.NotExist.Error | This work does not exist. It may have been deleted. Work ID is %s. | 作品不存在,可能已经被删除。作品ID:%s。 | 
| 500 | System.Param.empty | This error code has been discarded. | 错误码已废弃。 | 
| 500 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | 空间不在组织内。 | 
| 500 | AccessMenu.NotMatch.Portal | The menu does not match the BI portal. | 菜单与门户网站不匹配。 | 
| 500 | FolderMenu.CanNot.Authorize | The folder type menu cannot be authorized. Menu ID: %s. | 文件夹类型菜单无法进行授权操作,menuId为%s。 | 
| 500 | Menu.NotBelongTo.CurrentDataportal | Menu %s does not belong to the current data portal %s. | 菜单%s不属于当前数据门户%s。 | 
| 500 | Invalid.Parameter | An error occurred while verifying parameters. | 参数验证失败。 | 
| 500 | User.NotBelongTo.CurrentOrganization | The user %s does not belong to the current organization. | 用户%s不属于当前组织。 | 
| 500 | Usergroup.NotBelongTo.CurrentOrganization | The usergroup %s does not belong to the current organization. | 用户组%s不属于当前组织。 | 
| 500 | Internal.System.Error | An internal system error occurred. | 系统内部异常。 | 
访问错误中心查看更多错误码。