Queries the approval details of a ticket.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:GetApprovalDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
The ID of the tenant. You can call the GetUserActiveTenant operation to obtain the tenant ID. |
3*** |
| WorkflowInstanceId |
integer |
Yes |
The ID of the approval process. You can call the GetOrderBaseInfo operation to obtain the ID of the approval process. |
184**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
66DE630B-ECA1-52A3-9198-602066F9**** |
| ErrorCode |
string |
The error code returned if the request failed. |
MissingWorkflowInstanceId |
| ErrorMessage |
string |
The error message returned if the request failed. |
WorkflowInstanceId is mandatory for this action. |
| ApprovalDetail |
object |
The approval details of the ticket. |
|
| WorkflowNodes |
object |
||
| WorkflowNode |
array<object> |
The details of approval nodes. |
|
|
array<object> |
|||
| OperateTime |
string |
The time when the ticket was submitted. |
2019-10-15 13:47:54 |
| OperatorId |
integer |
The ID of the user who submitted the ticket. |
1**** |
| NodeName |
string |
The name of the approval node. |
DBA |
| AuditUserIdList |
object |
||
| AuditUserIds |
array |
The IDs of the approvers. |
|
|
string |
The ID of the approver. |
10**** |
|
| OperateComment |
string |
The remarks of the approval. |
Reason: Approved |
| WorkflowInsCode |
string |
The approval status of the ticket. Valid values:
|
APPROVED |
| Description |
string |
The description of the approval process. |
[Instance permissions] application |
| CreateTime |
string |
The time when the approval process was created. |
2021-10-29 14:17:25 |
| CurrentHandlers |
object |
||
| CurrentHandler |
array<object> |
The information about the approver. |
|
|
object |
|||
| NickName |
string |
The nickname of the user. |
nickName |
| Id |
integer |
The ID of the user. |
1 |
| OrderType |
string |
The type of the ticket. Valid values:
|
PERM_APPLY |
| Title |
string |
The title of the approval process. |
Permission application ticket-384**** |
| AuditId |
integer |
The ID of the approval process. |
184**** |
| OrderId |
integer |
The ID of the ticket. |
384**** |
| WorkflowInsCode |
string |
The approval status of the ticket. Valid values:
Note
An approval process contains multiple approval nodes, and this parameter is returned for each approval node. |
APPROVED |
| ReasonList |
object |
||
| Reasons |
array |
The reasons for the approval. |
|
|
string |
The reason for the approval. |
Permission applications require approval |
|
| TemplateId |
integer |
The ID of the workflow template. |
1234 |
| ThirdpartyWorkflowUrl |
string |
The third-party approval flow link. |
https://xxx |
| ThirdpartyWorkflowComment |
string |
Third-party approval flow remarks. |
test |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "66DE630B-ECA1-52A3-9198-602066F9****",
"ErrorCode": "MissingWorkflowInstanceId",
"ErrorMessage": "WorkflowInstanceId is mandatory for this action.",
"ApprovalDetail": {
"WorkflowNodes": {
"WorkflowNode": [
{
"OperateTime": "2019-10-15 13:47:54",
"OperatorId": 0,
"NodeName": "DBA",
"AuditUserIdList": {
"AuditUserIds": [
"10****"
]
},
"OperateComment": "理由:同意",
"WorkflowInsCode": "APPROVED"
}
]
},
"Description": "【实例权限】申请权限类型:「登录」申请期限:30.0 days背景描述:【实例权限】test登录【申请列表】product rm-bp144d5ky4l4rli0417****.mysql.rds.aliyuncs.com:3306 - PRODUCT",
"CreateTime": "2021-10-29 14:17:25",
"CurrentHandlers": {
"CurrentHandler": [
{
"NickName": "nickName",
"Id": 1
}
]
},
"OrderType": "PERM_APPLY",
"Title": "权限申请工单-384****",
"AuditId": 0,
"OrderId": 0,
"WorkflowInsCode": "APPROVED",
"ReasonList": {
"Reasons": [
"Permission applications require approval"
]
},
"TemplateId": 1234,
"ThirdpartyWorkflowUrl": "https://xxx",
"ThirdpartyWorkflowComment": "test"
},
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.