Generate a ticket for third-party embedding.
Operation description
For detailed usage, please refer to Report Embedding Data Permission Control and Parameter Passing Security Enhancement Solution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:CreateTicket |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorksId |
string |
Yes |
The ID of the report to be embedded. Currently supports dashboards, spreadsheets, data screens, self-service data retrieval, ad-hoc analysis, and data entry. |
a206f5f3-****-e9b17c835b03 |
| CmptId |
string |
No |
Component ID. This is the ID of a component within the above-mentioned dashboard; other types of works do not support this. Refer to QueryWorksBloodRelationship for the API to get the component ID. |
0fc6a275c7f64f17b1****a306ce0f31 |
| TicketNum |
integer |
No |
The number of tickets. Each time a ticket is used, the number of tickets decreases by 1.
|
1 |
| UserId |
string |
No |
Quick BI's UserId, which is not your Alibaba Cloud account ID. You can call the QueryUserInfoByAccount interface to obtain the UserId. An example of a UserId is fe67f61a35a94b7da1a34ba174a7****. Note
Only one of UserId and AccountName needs to be filled in. If neither is filled in, it will default to binding the report's Owner, and the report will be accessed with that user's identity. If you need to configure row-level permissions, please refer to Row-Level Permissions. |
46e537466****92704c8 |
AccountName
deprecated
|
string |
No |
The user's account name.
Note
Only one of UserId and AccountName needs to be filled in. If neither is filled in, it will default to binding the report's Owner, and the report will be accessed with that user's identity. If you need to configure row-level permissions, please refer to Row-Level Permissions. |
test |
AccountType
deprecated
|
integer |
No |
The type of the user's account.
Note
If AccountName is not empty, then AccountType must also not be empty. |
1 |
| ExpireTime |
integer |
No |
Expiration time
|
200 |
| WatermarkParam |
string |
No |
Watermark parameters for the report.
|
ticket embed |
| GlobalParam |
string |
No |
Global parameters for the report filter conditions.
Note
If you need to use global parameter capabilities, please contact the Quick BI Operations Manager. |
[{"paramKey":"price","joinType":"and","conditionList":[{"operate":">","value":"0"}]}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Request ID. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
string |
The generated ticket value. |
ccd3428c-****-****-a608-26bae29dffee |
| Success |
boolean |
Indicates whether the request was successful. Value range:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": "ccd3428c-****-****-a608-26bae29dffee",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Authorize3rdTicket.BindedWorks.Mismatch | The report bound by the ticket mismatches the actual report. | |
| 400 | Authorize3rdTicket.Expired | Ticket [%s] has expired. | |
| 400 | Authorize3rdTicket.HasNo.LoginToken | The request [%s] has no token. | |
| 400 | Authorize3rdTicket.NotExist | Ticket %s does not exist. | |
| 400 | Authorize3rdTicket.Num.Exceed | The number of tickets %s is invalid. | |
| 400 | Authorize3rdTicket.Num.HasNoLeft | There is no ticket number left, please generate new ticket. | |
| 400 | Report.NotExist.Error | This work does not exist. It may have been deleted. Work ID is %s. | This work does not exist. It may have been deleted. Work ID is %s. |
| 400 | Authorize3Rd.Report.Unauthorized | The report is not enabled for third party embedding. | This report is not enabled for 3rd party embedding. |
| 400 | Cube.Not.Exist | The Cube does not exist. | The Cube does not exist. |
| 400 | Datasource.NotFound.Error | The specified data source does not exist: %s. | The specified data source does not exist: %s. |
| 400 | Report.NotExist | The dashboard does not exist. | The dashboard does not exist. |
| 400 | Organization.Workspace.Inconformity | The workspace does not match the organization. | workspace inconformity with organization. |
| 400 | Parameter.Length.Exceed | Parameter length exceeds maximum limit: [%s]. | |
| 400 | GlobalParam.Restricted.Use | The global parameter function is restricted in your version. | |
| 400 | Authorize3rdTicket.Unsupport.ScreenWatermark | Screen embed does not support watermark parameters. | Screen embed does not support watermark parameters. |
| 400 | NoPermissionTo.Operate.Object | You are not authorized to operate the objects. | You are not authorized to do this. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.