All Products
Search
Document Center

Ticket System API:GetTicket

Last Updated:Jul 22, 2024

Query tickets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
TicketIdstringYes

Work Order Number

001571BTXC
UidstringNo

UID

1604499804113750

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

C499BB0F-630D-5BE6-B3EA-5FCD95B85503
Successboolean

Indicates whether the call is successful. A value of true indicates that the call is normal.

True
Codeinteger

The return code of the request result.

0
Messagestring

The error message. If success is set to false, the message is returned.

success
PageNumberinteger

Page number of the paging query parameter

1
PageSizeinteger

The number of entries per page in a pagination query parameter.

10
TotalCountlong

The total number of query results, that is, the total number of my ticket records.

108
Dataobject

The data returned after the call succeeds.

TicketIdstring

Work Order Number

0005PYGCW
Titlestring

The title of the ticket.

Why ECS renewal failed?
Descriptionstring

The description of the ticket. Only pure text format is supported.

Why ECS renewal failed?
CreateTimelong

The timestamp when the ticket was created.

1623396736000
CreatorIdstring

The uid of the ticket creator.

1168025
CategoryIdstring

The ID of the ticket issue category.

7161
Statusobject

The status of the ticket. The reference values are as follows 1, "assigned", "Pending Response", 2, "handling", "handling", 3, "wait_feedback", "Pending feedback", 4: "feedback", "Feedback", 5, "wait_confirm", "To be confirmed", 6, "confirmed", "Completed"

Labelstring

Status Enumeration Text

Completed
Valuestring

State enumeration value

6
Severityobject

Urgency enumeration value, 1 for general problem, 2 for urgent problem

Labelstring

Enumeration Text

Common
Valuestring

Enumeration

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "C499BB0F-630D-5BE6-B3EA-5FCD95B85503",
  "Success": true,
  "Code": 0,
  "Message": "success",
  "PageNumber": 1,
  "PageSize": 10,
  "TotalCount": 108,
  "Data": {
    "TicketId": "0005PYGCW",
    "Title": "Why ECS renewal failed?",
    "Description": "Why ECS renewal failed?",
    "CreateTime": 1623396736000,
    "CreatorId": "1168025",
    "CategoryId": "7161",
    "Status": {
      "Label": "Completed",
      "Value": "6"
    },
    "Severity": {
      "Label": "Common",
      "Value": "1"
    }
  }
}

Error codes

HTTP status codeError codeError messageDescription
400illegal.paramIllegal param.-
401illegal.authYou are not authorized to perform the operation.You are not authorized to perform this operation.
500System.errorAn error occurred while processing your request.An error occurred while processing your request. Please try again.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history