Creates a ticket.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateTicket

The operation that you want to perform. Set the value to CreateTicket.

Content String Yes I cannot connect to my ECS instance. Please help check.

The question description.

CustomerCommonQuestionId Long Yes 34

The question ID. You can call the ListCommonQuestion operation to query the common questions for the specific product. If this question ID cannot be found from ProductId in the response of the ListCommonQuestion operation, the ticket cannot be created.

Email String Yes support@aliyun.com

The mailbox that you use to receive ticket messages, for example, a ticket progress message.

ProductId Long Yes 12

The product ID. You can call the ListProducts operation to obtain product information.

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.

Title String No ECS Connection Failure

The ticket title.

SecretContent String No The instance ID is XXXXXX.

The confidential details, including your ECS instance information and personal information. This parameter has a high data security level.

Phone String No 1381111****

The mobile phone number that you use to receive SMS messages about the progress of ticket processing.

AlertTime String No all

The time range during which ticket messages can be received. Valid values: normal, all, and never. The value normal indicates that the messages can be received from 09:00:00 to 18:00:00 every day. The value all indicates no time limit, and the messages can be received anytime. The value never indicates that the messages are never received. Default value: all.

CarbonCopyEmail String No support_another@aliyun.com

The CC mailbox that you add to receive ticket messages.

Response parameters

Parameter Type Example Description
Code String 200

The status code.

Data String ACB8WY2

The ticket number returned after the ticket is created.

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=CreateTicket
&Content=I cannot connect to my ECS instance. Please help check.
&CustomerCommonQuestionId=34
&Email=support@aliyun.com
&ProductId=12
&<Common request parameters>

Sample success responses

XML format

<Message>success</Message>
<Data>ETARNPP</Data>
<Code>200</Code>
<Success>true</Success>

JSON format

{
  "Message": "success",
  "Data": "ETARNPP",
  "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.