Creates a ticket.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Description |
string |
Yes |
The description of the issue in the ticket. Only plain text is supported. |
ecs备份失败 |
| Severity |
integer |
Yes |
An enumeration value. A value of 1 indicates a normal issue. A value of 2 indicates an urgent issue. Valid values:
|
1 |
| CategoryId |
string |
Yes |
The ID of the issue category. Obtain this ID from the ListCategories operation. |
53812 |
| Title |
string |
No |
The title of the ticket. |
ecs备份失败 |
| CreatorId |
string |
No |
The Alibaba Cloud UID of the account that submits the ticket. This parameter is required for Marketplace reseller scenarios. |
1289427240739141 |
|
string |
No |
The contact email address for the ticket. |
sdahkjdshga@qq.com |
|
| FileNameList |
array |
No |
A list of attachment names. Use the ObjectKey value returned by the GetAttachmentUploadUrl operation. |
|
|
string |
No |
The ObjectKey value returned by the GetAttachmentUploadUrl operation. |
cabb80c3-430b-4079-a9f2-d2a0d1c2a587.png |
|
| SecretInfo |
object |
No |
Sensitive information. |
|
| Content |
string |
No |
The text of the sensitive information. |
身份证:3310xxxx |
| FileNameList |
array |
No |
A list of attachment names for the sensitive information. |
|
|
string |
No |
The ObjectKey value returned by the GetAttachmentUploadUrl operation. |
cabb80c3-430b-4079-a9f2-d2a0d1c2a587.png |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AccessDeniedDetail |
string |
The details of the permission error. An empty string is returned if the permissions are sufficient. |
{\"AuthAction\":\"ram:CreateTicket\",\"AuthPrincipalDisplayName\":\"2146216584788xxxxx\",\"AuthPrincipalOwnerId\":\"1135850448xxxxx\",\"AuthPrincipalType\":\"SubUser\",\"NoPermissionType\":\"ImplicitDeny\",\"PolicyType\":\"AccountLevelIdentityBasedPolicy\"} |
| Code |
integer |
The return code of the API request. |
0 |
| Message |
string |
The error message. This parameter is returned when the value of Success is false. |
success |
| Data |
string |
The return value, which is the ticket ID. |
0005PYGCW |
| RequestId |
string |
The unique ID of the request. Each request has a unique ID. |
0254B7DE-7365-57B4-8E38-14FE927E3FEB |
| Success |
boolean |
Indicates whether the API call was successful. A value of true indicates that the call was successful. |
True |
Examples
Success response
JSON format
{
"AccessDeniedDetail": "{\\\"AuthAction\\\":\\\"ram:CreateTicket\\\",\\\"AuthPrincipalDisplayName\\\":\\\"2146216584788xxxxx\\\",\\\"AuthPrincipalOwnerId\\\":\\\"1135850448xxxxx\\\",\\\"AuthPrincipalType\\\":\\\"SubUser\\\",\\\"NoPermissionType\\\":\\\"ImplicitDeny\\\",\\\"PolicyType\\\":\\\"AccountLevelIdentityBasedPolicy\\\"}",
"Code": 0,
"Message": "success",
"Data": "0005PYGCW",
"RequestId": "0254B7DE-7365-57B4-8E38-14FE927E3FEB",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | param.illegal | Params illegal. | |
| 401 | illegal.auth | You are not authorized to perform the operation. | You are not authorized to perform this operation. |
| 500 | System.error | An error occurred while processing your request. | An error occurred while processing your request. Please try again. |
| 403 | No permissions | No permissions to access. | RAM authentication does not have permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.