Queries approval details for 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 |
Tenant ID. Call GetUserActiveTenant to query this ID. |
3*** |
| WorkflowInstanceId |
integer |
Yes |
Approval process ID. Call GetOrderBaseInfo to query this ID. |
184**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
66DE630B-ECA1-52A3-9198-602066F9**** |
| ErrorCode |
string |
Error code returned on failure. |
MissingWorkflowInstanceId |
| ErrorMessage |
string |
Error message returned on failure. |
WorkflowInstanceId is mandatory for this action. |
| ApprovalDetail |
object |
Approval details of the ticket. |
|
| WorkflowNodes |
object |
||
| WorkflowNode |
array<object> |
Approval node details. |
|
|
array<object> |
|||
| OperateTime |
string |
Time when the ticket was submitted. |
2019-10-15 13:47:54 |
| OperatorId |
integer |
ID of the user who submitted the ticket. |
1**** |
| NodeName |
string |
Approval node name. |
DBA |
| AuditUserIdList |
object |
||
| AuditUserIds |
array |
Approver IDs. |
|
|
string |
Approver ID. |
10**** |
|
| OperateComment |
string |
Approval remarks. |
理由:同意 |
| WorkflowInsCode |
string |
Approval status of the ticket. Valid values:
|
APPROVED |
| Description |
string |
Approval process description. |
【实例权限】申请 |
| CreateTime |
string |
Time when the approval process was created. |
2021-10-29 14:17:25 |
| CurrentHandlers |
object |
||
| CurrentHandler |
array<object> |
Approver details. |
|
|
object |
|||
| NickName |
string |
User nickname. |
nickName |
| Id |
integer |
User ID. |
1 |
| OrderType |
string |
Ticket type. Valid values:
|
PERM_APPLY |
| Title |
string |
Approval process title. |
权限申请工单-384**** |
| AuditId |
integer |
Approval process ID. |
184**** |
| OrderId |
integer |
Ticket ID. |
384**** |
| WorkflowInsCode |
string |
Approval status of the ticket. Valid values:
Note
Returned for each approval node in the process. |
APPROVED |
| ReasonList |
object |
||
| Reasons |
array |
Approval reasons. |
|
|
string |
Approval reason. |
根据安全规则,权限申请需要审批 |
|
| TemplateId |
integer |
Workflow template ID. |
1234 |
| ThirdpartyWorkflowUrl |
string |
URL of the third-party approval workflow. |
https://xxx |
| ThirdpartyWorkflowComment |
string |
Remarks from the third-party approval workflow. |
test |
| Success |
boolean |
Whether the request succeeded. 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": [
"根据安全规则,权限申请需要审批"
]
},
"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.