Creating a Ticket
Function
This API is used to create a ticket.
URI
POST /v1/{project_id}/tickets
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For how to obtain the project ID, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. Obtain a user token by calling IAM's "Obtaining a User Token" API. X-Subject-Token in the response header is the desired user token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
embed_id |
Yes |
String |
Embedded analytics ID. |
user_id |
Yes |
String |
User ID. |
group_ids |
No |
Array of strings |
List of user group IDs. |
ticket_num |
No |
Integer |
Number of times the ticket has been used. |
session_auto_renew |
No |
Boolean |
Whether to automatically renew the session. Default value: false |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
ticket |
String |
Generated ticket. |
Example Request
Create a ticket.
POST https://{endpoint}/v1/{project_id}/tickets { "user_id" : "aaa18eb155xxxxxxxxxxxxxxxxxxx", "ticket_num" : 1000, "embed_id" : "8e59605cxxxxxxxxxxxx" }
Example Response
Status code: 200
The ticket is created.
{ "ticket" : "dea43d00388xxxxxxxxxxxxxx" }
Status Codes
Status Code |
Description |
---|---|
200 |
The ticket is created. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot