All Products
Search
Document Center

Data Management:GetApprovalDetail

Last Updated:Dec 01, 2026

Queries the approval details of a ticket.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • START: The ticket was submitted.

  • ERROR: An error occurred.

  • AUDITING: The ticket is being reviewed.

  • REJECT: The ticket was rejected.

  • CANCEL: The ticket was revoked.

  • APPROVED: The ticket was approved.

APPROVED

Description

string

The description of the approval process.

[Instance permissions] application
Permission type: Logon
Application period: 30.0 days
Background: [Instance permissions] test logon

[Application list]
product rm-bp144d5ky4l4rli0417****.mysql.rds.aliyuncs.com:3306 - PRODUCT






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:

  • NDDL: a schema design ticket

  • DATA_TRACK: a data tracking ticket

  • TABLE_SYNC: a table synchronization ticket

  • PERM_APPLY: a permission application ticket

  • DATA_EXPORT: a data export ticket

  • DATA_CORRECT: a data change ticket

  • OWNER_APPLY: an owner role application ticket

  • SENSITIVITY: a column sensitivity level change ticket

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:

  • AUDITING: The ticket is being reviewed.

  • REJECT: The ticket was rejected.

  • CANCEL: The ticket was revoked.

  • APPROVED: The ticket was approved.

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: The request is successful.

  • false: The request fails.

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.