Queries all works in a specified workspace. You can filter results by work type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:QueryWorksByWorkspace |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The ID of the workspace. |
89713491-cb4f-4579-b889-e82c35f1**** |
| WorksType |
string |
No |
The type of the work. Valid values:
|
PAGE |
| Status |
integer |
No |
The status of the work. Valid values:
|
0 |
| ThirdPartAuthFlag |
integer |
No |
Third-party embedding status. Valid values:
|
0 |
| PageNum |
integer |
No |
The number of the page to return.
|
1 |
| PageSize |
integer |
No |
The number of entries per page.
|
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| RequestId |
string |
The ID of the request. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
object |
A list of all works in the workspace that match the specified criteria. |
|
| Data |
array<object> |
The list of works. |
|
|
array<object> |
|||
| Auth3rdFlag |
integer |
Third-party embedding status. Valid values:
|
1 |
| Description |
string |
The remarks of the work. |
备注 |
| Directory |
object |
The directory to which the work belongs. |
|
| Id |
string |
The ID of the directory. |
83d37ba6-d909-48a2-a517-f4d05c3a**** |
| Name |
string |
The name of the directory. |
所属目录名称。 |
| PathId |
string |
The hierarchical path of directory IDs, separated by forward slashes (/). |
83d37ba6-d909-48a2-a517-f4d05c3a**** |
| PathName |
string |
The hierarchical path of directory names, separated by forward slashes (/). |
测试目录 |
| GmtCreate |
string |
The creation time of the work, in milliseconds. |
1496651577000 |
| GmtModify |
string |
The last modification time of the work, in milliseconds. |
1572334870000 |
| ModifyName |
string |
The nickname of the user who last modified the work. |
张三 |
| OwnerId |
string |
The Quick BI user ID of the work owner. |
作品所属工作空间名称。 |
| OwnerName |
string |
The nickname of the work owner. |
李四 |
| PublicFlag |
boolean |
Indicates whether the work is publicly accessible. |
true |
| PublicInvalidTime |
integer |
The expiration time for public access to the work, in milliseconds. |
1721366354000 |
| SecurityLevel |
string |
The security level for work collaboration. Valid values:
Note
|
0 |
| Status |
integer |
The publication status of the work. For work types other than dashboards, full-screen dashboards, and spreadsheets, the default value is 1. Valid values:
|
1 |
| WorkName |
string |
The name of the work. |
测试报表 |
| WorkType |
string |
The type of the work. Valid values:
|
PAGE |
| WorksId |
string |
The ID of the work. |
897ce25e-f993-4abd-af84-d13c5610**** |
| WorkspaceId |
string |
The ID of the workspace to which the work belongs. |
87c6b145-090c-43e1-9426-8f93be23**** |
| WorkspaceName |
string |
The name of the workspace to which the work belongs. |
测试工作空间 |
| PageNum |
integer |
The page number of the returned page. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalNum |
integer |
The total number of entries. |
1 |
| TotalPages |
integer |
The total number of pages returned. |
1 |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": {
"Data": [
{
"Auth3rdFlag": 1,
"Description": "备注",
"Directory": {
"Id": "83d37ba6-d909-48a2-a517-f4d05c3a****",
"Name": "所属目录名称。",
"PathId": "83d37ba6-d909-48a2-a517-f4d05c3a****",
"PathName": "测试目录"
},
"GmtCreate": "1496651577000",
"GmtModify": "1572334870000",
"ModifyName": "张三",
"OwnerId": "作品所属工作空间名称。",
"OwnerName": "李四",
"PublicFlag": true,
"PublicInvalidTime": 1721366354000,
"SecurityLevel": "0",
"Status": 1,
"WorkName": "测试报表",
"WorkType": "PAGE",
"WorksId": "897ce25e-f993-4abd-af84-d13c5610****",
"WorkspaceId": "87c6b145-090c-43e1-9426-8f93be23****",
"WorkspaceName": "测试工作空间"
}
],
"PageNum": 1,
"PageSize": 10,
"TotalNum": 1,
"TotalPages": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.