You can call ListOrders to retrieve a list of tickets.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListOrders |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Tid |
integer |
No |
Tenant ID. Get this value by calling GetUserActiveTenant or ListUserTenants. |
3*** |
| PluginType |
string |
No |
Ticket type. For valid values, see PluginType parameter description. |
DC_COMMON |
| OrderResultType |
string |
No |
Search type. If you do not specify this parameter, the API returns tickets that you submitted (AS_COMMITTER) by default. Valid values:
Note
|
AS_COMMITTER |
| SearchDateType |
string |
No |
Date filter. Valid values:
|
CREATE_TIME |
| StartTime |
string |
No |
Start time. |
2022-04-08 11:00:00 |
| EndTime |
string |
No |
End time. |
2022-04-09 11:00:00 |
| SearchContent |
string |
No |
Search content. |
test |
| OrderStatus |
string |
No |
Ticket status. Valid values:
|
ALL |
| PageSize |
integer |
No |
Number of items per page. |
10 |
| PageNumber |
integer |
No |
Page number to start from. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Orders |
object |
||
| Order |
array<object> |
Ticket list. |
|
|
object |
|||
| Comment |
string |
Ticket comment. |
test |
| LastModifyTime |
string |
Last modification time of the ticket. |
2022-04-08 11:27:45 |
| StatusCode |
string |
Ticket status code. Valid values:
|
success |
| CreateTime |
string |
Ticket creation time. |
2022-04-08 11:15:46 |
| Committer |
string |
Ticket submitter. |
test |
| CommitterId |
integer |
User ID of the ticket submitter. |
51**** |
| StatusDesc |
string |
Description of the ticket status. |
变更成功 |
| PluginType |
string |
Ticket type. |
DC_COMMON |
| OrderId |
integer |
Ticket ID. |
51**** |
| TotalCount |
integer |
Total number of records. |
1 |
| RequestId |
string |
Request ID. |
427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D |
| ErrorCode |
string |
Error code. |
UnknownError |
| ErrorMessage |
string |
Error message. |
UnknownError |
| Success |
boolean |
Indicates whether the request succeeded. Valid values:
|
true |
Examples
Success response
JSON format
{
"Orders": {
"Order": [
{
"Comment": "test",
"LastModifyTime": "2022-04-08 11:27:45",
"StatusCode": "success",
"CreateTime": "2022-04-08 11:15:46",
"Committer": "test",
"CommitterId": 0,
"StatusDesc": "变更成功",
"PluginType": "DC_COMMON",
"OrderId": 0
}
]
},
"TotalCount": 1,
"RequestId": "427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.