All Products
Search
Document Center

Simple Log Service:CreateTicket

Last Updated:Nov 13, 2024

Creates a ticket to enable logon-free access to the Simple Log Service console or embed console pages into a third-party system.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /tickets HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
expirationTimelongNo

The validity period of the ticket that is used for logon-free access. Unit: seconds. Default value: 86400. Maximum value: 2592000. The value 86400 specifies one day.

86400

Response parameters

ParameterTypeDescriptionExample
headersobject
Content-Typestring
Serverstring
Content-Lengthstring
Datestring
Connectionstring
x-log-requestidstring
object

The returned struct.

ticketstring

The ticket that is used for logon-free access.

eyJ***************.eyJ******************.KUT****************

Examples

Sample success responses

JSONformat

{
  "ticket": "eyJ***************.eyJ******************.KUT****************"
}

Error codes

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