Mengambil detail instans proses persetujuan tertentu, termasuk node persetujuan dan daftar tugasnya.
Deskripsi operasi
Request
This API is used to monitor and manage the status of an approval process. By providing the approval process instance ID, you can query for related information, such as the approval process definition, current approval nodes, and the tasks on each node.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProcessInstanceId |
string |
Yes |
ID instans proses. |
332066440109224007 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. Use this ID to locate logs and troubleshoot issues. |
0bc5df3a17****903790e8e8a |
| ProcessInstance |
object |
Details of the approval process instance. |
|
| Id |
string |
The process instance ID. |
332066440109224007 |
| Title |
string |
The name of the process instance. |
MaxCompute表权限申请 |
| Status |
string |
The status of the process instance. Valid values:
Valid values:
|
completed |
| Applicator |
string |
The user ID of the applicant. |
1107558004253538 |
| ApplicatorName |
string |
The username of the applicant's Alibaba Cloud account. |
test_account |
| StartTime |
any |
The time when the approval process started. |
2026-05-25 10:20:18 CST |
| Reason |
string |
The reason for the request. |
业务需要 |
| AuthErrorMessage |
string |
The authorization failure message. Note: This parameter is returned only if the authorization fails. |
S-400007:ODPS acl auth failed. odps table acl auth failed |
| ApprovalTasks |
array<object> |
The approval tasks. |
|
|
array<object> |
An approval task. |
||
| Id |
string |
The approval task ID. |
task_001 |
| Status |
string |
The status of the task. Valid values:
Valid values:
|
Aborted |
| ApprovalComment |
string |
The approval comment. |
同意 |
| Assignee |
string |
The user ID of the actual approver. |
207947399706614297 |
| AssigneeName |
string |
The name of the actual approver. |
李四 |
| ApprovalDecision |
string |
The approval decision. Valid values:
Valid values:
|
Deny |
| CreateTime |
integer |
The time when the task was created. |
1715587200000 |
| CompleteTime |
integer |
The time when the task was completed. |
1715590800000 |
| ApprovalNode |
object |
The approval node from the corresponding approval policy. |
|
| Id |
string |
The node ID. |
7a809b6a-2a62-4c6c-9c23-c2a145e3877d |
| Name |
string |
The node name. |
default-name |
| AccountType |
string |
The type of the approver for the node. Valid values:
Valid values:
|
DataWorksProjectRole |
| Assignees |
array |
The specified approvers. The contents of this parameter depend on the
|
|
|
string |
An approver. |
role_project_admin |
|
| TaskCandidates |
array<object> |
The candidate approvers for the task. |
|
|
object |
A candidate approver. |
||
| MemberUserId |
string |
The user ID of the approver. |
207947397776614297 |
| MemberName |
string |
The name of the approver. |
李四 |
| ApprovalProcessDefinition |
object |
The approval policy applied to this process instance. |
|
| Id |
string |
The approval policy ID. |
323861511451222099 |
| Name |
string |
The name of the approval policy. |
SYSTEM_GENERATE_DEFAULT |
| Description |
string |
The description of the approval policy. |
流程定义描述 |
| Type |
string |
The type of the approval policy. Valid values:
|
MaxCompute |
| SubType |
string |
The subtype of the approval policy. Valid values:
|
Table |
| Enabled |
boolean |
Indicates whether the policy is enabled. |
true |
| RuleConditions |
array<object> |
The rules that determine when the approval policy takes effect. |
|
|
object |
A rule that determines when the approval policy takes effect. |
||
| Type |
string |
The type of the rule condition. Valid values:
Valid values:
|
odpsProject |
| Expression |
string |
The expression of the rule condition. Format: |
((#odpsProject=='PX_BEIJING_TEST')) |
| Scope |
string |
The rule scope. Valid values:
Valid values:
|
Deployment |
| NotificationServices |
array<object> |
The notification services. |
|
|
object |
A notification service. |
||
| Channel |
string |
The notification channel. Valid values:
Valid values:
|
|
| Extension |
string |
Additional information in JSON format. For example, |
{"atAll":"true"} |
| Receiver |
string |
If |
https://dingtalk |
| ApprovalNodes |
array<object> |
The approval nodes. |
|
|
object |
An approval node. |
||
| Id |
string |
The node ID. |
7a809b6a-2a62-4c6c-9c23-c2a145e3877d |
| Name |
string |
The node name. |
default-name |
| AccountType |
string |
The type of the approver for the node. Valid values:
|
DataWorksProjectRole |
| Assignees |
array |
The specified approvers. The contents of this parameter depend on the
|
|
|
string |
An approver. |
role_project_admin |
|
| ExtensionProperties |
string |
The extended description of the approval node. |
none |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0bc5df3a17****903790e8e8a",
"ProcessInstance": {
"Id": "332066440109224007",
"Title": "MaxCompute表权限申请",
"Status": "completed",
"Applicator": "1107558004253538",
"ApplicatorName": "test_account",
"StartTime": "2026-05-25 10:20:18 CST",
"Reason": "业务需要",
"AuthErrorMessage": "S-400007:ODPS acl auth failed. odps table acl auth failed",
"ApprovalTasks": [
{
"Id": "task_001",
"Status": "Aborted",
"ApprovalComment": "同意",
"Assignee": "207947399706614297",
"AssigneeName": "李四",
"ApprovalDecision": "Deny",
"CreateTime": 1715587200000,
"CompleteTime": 1715590800000,
"ApprovalNode": {
"Id": "7a809b6a-2a62-4c6c-9c23-c2a145e3877d",
"Name": "default-name",
"AccountType": "DataWorksProjectRole",
"Assignees": [
"role_project_admin"
]
},
"TaskCandidates": [
{
"MemberUserId": "207947397776614297",
"MemberName": "李四"
}
]
}
],
"ApprovalProcessDefinition": {
"Id": "323861511451222099",
"Name": "SYSTEM_GENERATE_DEFAULT",
"Description": "流程定义描述",
"Type": "MaxCompute",
"SubType": "Table",
"Enabled": true,
"RuleConditions": [
{
"Type": "odpsProject",
"Expression": "((#odpsProject=='PX_BEIJING_TEST'))",
"Scope": "Deployment"
}
],
"NotificationServices": [
{
"Channel": "Mail",
"Extension": "{\"atAll\":\"true\"}",
"Receiver": "https://dingtalk"
}
],
"ApprovalNodes": [
{
"Id": "7a809b6a-2a62-4c6c-9c23-c2a145e3877d",
"Name": "default-name",
"AccountType": "DataWorksProjectRole",
"Assignees": [
"role_project_admin"
],
"ExtensionProperties": "none"
}
]
}
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.