Call the ListWorkFlowNodes to obtain the approval node list.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListWorkFlowNodes |
The operation that you want to perform. Valid values: ListWorkFlowNodes |
Tid | Long | Yes | -1 |
The ID of the tenant. Note
The tenant ID is
taken from the tenant ID displayed when you move the pointer on your profile picture.
For more information, see
View tenant information
.
|
SearchName | String | No | admin |
Enter an approval node name. |
Response parameters
Parameter | Type | Sample response | Description |
---|---|---|---|
ErrorCode | String | UnknownError |
The error codes. |
ErrorMessage | String | UnknownError |
The error message. |
RequestId | String | CFD8FE00-36D9-4C1B-940D-65A7B73D9066 |
The ID of the request. |
Success | Boolean | true |
Indicates whether the call was successful. |
WorkflowNodes | Array of WorkflowNode |
The information about the approval node. |
|
WorkflowNode | |||
AuditUsers | Array of AuditUser |
The information of the approver. |
|
AuditUser | |||
NickName | String | test |
Nickname of approver. |
RealName | String | test |
The real name of the approver. |
UserId | Long | 123 |
The user ID of the approver. Note that the value is not an Alibaba Cloud Uid. |
Comment | String | test |
The description of the consumer group. |
CreateUserId | Long | 123 |
The user ID of the Creator. Note that the ID is not an Alibaba Cloud uid. |
CreateUserNickName | String | test |
The nickname of the creator. |
NodeId | Long | 123 |
The ID of the node. |
NodeName | String | test |
The name of the node. |
NodeType | String | SYS |
The type of the node. Valid values:
|
Examples
Sample request
http(s)://[Endpoint]/? Action=ListWorkFlowNodes &Tid=-1 &<common request parameters>
Sample success responses
XML
format
<WorkFlowNodes> <WorkflowNode> <Comment> system node dynamically computed by an administrator to complete the examination and approval </Comment> <NodeName> Admin </NodeName> <NodeType> SYS </NodeType> <NodeId> 3763 </NodeId> <AuditUsers> </AuditUsers> </WorkflowNode> </WorkFlowNodes> <RequestId> cfd8fe00-36d9-4c1b-940d-65a7b73d9066 </RequestId> <Success> true </Success>
JSON
{"WorkFlowNodes": { "WorkflowNode": [ { "Comment": "system node, dynamically calculated, processed by administrator", "NodeName": "Admin", "NodeType": "SYS", "NodeId": 3763, "AuditUsers": { "AuditUser": [] } } ] }, "RequestId": "CFD8FE00-36D9-4 C1 B- 940D-65A7B73D9066", "Success": true}
Error codes
For more information about error codes, see error center.