Queries the tickets that you created.
Debugging
Request Parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListTickets |
The operation that you want to perform. Set the value to ListTickets. |
Ids | String | No | ETARNPP,RTARNP |
The ticket IDs for filtering. Separate multiple IDs with commas (,). |
CreatedAfterTime | Long | No | 1585790280 |
The start time of ticket creation. |
CreatedBeforeTime | Long | No | 1586049480 |
The end time of ticket creation. |
ProductCode | String | No | ecs |
The product code. |
PageSize | Integer | No | 20 |
The number of entries to return on each page. Default value: 20. Maximum value: 100. |
TicketStatus | String | No | wait_confirm,dealing |
The ticket states for filtering. Separate multiple states with commas (,). A ticket can be in one of the following states: in_progress: The ticket is being processed. wait_feedback: The ticket is waiting for your feedback. wait_confirm: The ticket is waiting for your confirmation. completed: The ticket is closed. |
PageStart | Integer | No | 1 |
The number of the page to return. |
SubUserId | String | No | 252448085032933023 |
The RAM user ID for filtering. |
Language | String | No | zh |
The language that you use, supporting English, Chinese, and Japanese. Valid values: en, zh, and jp, which indicate English, Chinese, and Japanese, respectively. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The status code. |
Data | Struct |
The data returned after the call succeeds. |
|
CurrentPage | Integer | 1 |
The number of the current page. |
List | Array |
The list of tickets. |
|
AddTime | Integer | 1585818240 |
The timestamp when the ticket was created (unit: second). |
CreatorId | String | 252448085032933023 |
The UID of the ticket creator. |
Id | String | CAB327A |
The ID of the ticket. |
TicketStatus | String | assigned |
The state of the ticket. A ticket can be in one of the following states: in_progress: The ticket is being processed. wait_feedback: The ticket is waiting for your feedback. wait_confirm: The ticket is waiting for your confirmation. completed: The ticket is closed. |
Title | String | Test ticket |
The title of the ticket. |
PageSize | Integer | 15 |
The number of entries returned per page. |
Total | Integer | 99 |
The total number of lists. |
Message | String | success |
The prompt message. |
RequestId | String | CA6204AC-6AA9-4CFA-9310-7DFD20C19EBC |
The ID of the request. |
Success | Boolean | true |
Indicates whether the request is successful. The value true indicates a success. The value false indicates a failure. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ListTickets
&<Common request parameters>
Sample success responses
XML
format
<Message>success</Message>
<Data>
<PageSize>20</PageSize>
<CurrentPage>1</CurrentPage>
<Total>2</Total>
<List>
<Title>POP test</Title>
<TicketStatus>assigned</TicketStatus>
<Id>CAB327A</Id>
<AddTime>1585818240</AddTime>
</List>
<List>
<Title>POP test</Title>
<TicketStatus>assigned</TicketStatus>
<Id>2HB89DX</Id>
<AddTime>1585818240</AddTime>
</List>
</Data>
<Code>200</Code>
<Success>true</Success>
JSON
format
{
"Message": "success",
"Data": {
"PageSize": 20,
"CurrentPage": 1,
"Total": 2,
"List": [
{
"Title": "POP test",
"TicketStatus": "assigned",
"Id": "CAB327A",
"AddTime": 1585818240
},
{
"Title": "POP test",
"TicketStatus": "assigned",
"Id": "2HB89DX",
"AddTime": 1585818240
}
]
},
"Code": 200,
"Success": true
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | param.illegal | The specified parameter is invalid. Please check the parameter. | The error message returned because there are invalid parameters. Modify the parameter settings as required. |
500 | System.error | An error occurred while processing your request. | The error message returned because an internal error has occurred. Try again later. |
For a list of error codes, visit the API Error Center.