ListPermissionApplyOrders
Queries a list of permission application orders. Note: The 2020 version of OpenAPI will be discontinued at a scheduled time. Please migrate to the 2024 version of OpenAPI as soon as possible — ListMyApplications/ListPendingApprovals/ListMyRelatedApprovals.
Operation description
Note: The 2020 version of OpenAPI will be discontinued at a scheduled time. Please migrate to the 2024 version of OpenAPI as soon as possible — ListMyApplications/ListPendingApprovals/ListMyRelatedApprovals.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FlowStatus |
integer |
No |
The status of the application order. Valid values:
|
1 |
| WorkspaceId |
integer |
No |
The ID of the workspace to which the application order belongs. If this parameter is not specified, application orders from all workspaces are returned. You can log on to the DataWorks console and go to the Workspace Settings page to obtain the workspace ID. |
12345 |
| OrderType |
integer |
No |
This parameter is deprecated and does not take effect. |
1 |
| MaxComputeProjectName |
string |
No |
The name of the MaxCompute project to which the application order belongs. If this parameter is not specified, application orders from all MaxCompute projects are returned. |
aMaxComputeProject |
| TableName |
string |
No |
The table name included in the application order. If this parameter is not specified, application orders for all tables are returned. |
aTableName |
| StartTime |
integer |
No |
The start time for querying application orders, specified as a UNIX timestamp. If this parameter is not specified, all application orders are queried. |
1616200471885 |
| EndTime |
integer |
No |
The end time for querying application orders, specified as a UNIX timestamp. If this parameter is not specified, application orders up to the current time are queried. |
1617200471885 |
| EngineType |
string |
No |
This parameter is deprecated and does not take effect. |
odps |
| PageNum |
integer |
No |
The page number for paginated queries. The value must be a positive integer greater than or equal to 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. Maximum value: 100. |
100 |
| QueryType |
integer |
Yes |
The query type of the application order. Valid values:
Valid values:
|
1 |
| ApplyType |
string |
No |
The type of the application order. Valid values:
|
MaxComputeTable |
| CatalogName |
string |
No |
The name of the data catalog to query. |
hive |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
0bc1ec92159376**** |
| ApplyOrders |
object |
The paginated query results of permission application orders. |
|
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
| TotalCount |
integer |
The total number of permission application orders returned. |
150 |
| ApplyOrder |
array<object> |
The list of permission application orders. |
|
|
array<object> |
The response. |
||
| ApplyBaseId |
string |
The Alibaba Cloud user UID that submitted the application order. |
267842600408993176 |
| ApplyTimestamp |
integer |
The submission time of the application order, displayed as a UNIX timestamp. |
1615284086000 |
| FlowId |
string |
The application order ID. |
ad8da78d-8135-455e-9486-27cf213fc140 |
| FlowStatus |
integer |
The status of the application order. Valid values:
|
2 |
| ApproveContent |
object |
The content of the application order. |
|
| ApplyReason |
string |
The reason for the application, used by the administrator for evaluation and approval. |
I need to use this table |
| OrderType |
integer |
The application order type. Currently, only the value 1 is supported, indicating an object ACL permission application. |
1 |
| ProjectMeta |
object |
The content of the applied object. |
|
| WorkspaceName |
string |
The name of the DataWorks workspace to which the MaxCompute project with the requested permissions belongs. |
aWorkspaceName |
| ObjectMetaList |
array<object> |
The information about the applied objects. |
|
|
object |
The response. |
||
| ObjectName |
string |
The name of the applied table. |
aTableName |
| Actions |
array |
The action types. |
|
|
string |
The permission types applied for. Multiple permission types in a single application are separated by commas (,). Currently, only Select, Describe, Drop, Alter, Update, and Download types are supported. |
Select,Describe |
|
| FinishApprovalTimestamp |
integer |
The final approval completion time, displayed as a UNIX timestamp. |
1757496687000 |
| FinishApprovalComment |
string |
The final approval comment. |
agree |
Examples
Success response
JSON format
{
"RequestId": "0bc1ec92159376****",
"ApplyOrders": {
"PageSize": 10,
"PageNumber": 1,
"TotalCount": 150,
"ApplyOrder": [
{
"ApplyBaseId": "267842600408993176",
"ApplyTimestamp": 1615284086000,
"FlowId": "ad8da78d-8135-455e-9486-27cf213fc140",
"FlowStatus": 2,
"ApproveContent": {
"ApplyReason": "I need to use this table",
"OrderType": 1,
"ProjectMeta": {
"WorkspaceName": "aWorkspaceName",
"ObjectMetaList": [
{
"ObjectName": "aTableName",
"Actions": [
"Select,Describe"
]
}
]
}
},
"FinishApprovalTimestamp": 1757496687000,
"FinishApprovalComment": "agree"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.