All Products
Search
Document Center

Simple Log Service:CreateTicket

Last Updated:Mar 27, 2026

Obtains a ticket. Simple Log Service allows you to share the query and analysis pages and dashboard pages with other users and embed the console pages into third-party systems. This way, other users can view your logs in password-free mode. The URLs of the shared pages are referred to as password-free URLs. You can call the CreateTicket operation to obtain a ticket and generate a password-free URL based on the ticket and the URL of the console page that you want to share.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /tickets HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

expirationTime

integer

No

  • You must use the Simple Log Service endpoint for the China (Shanghai) or Singapore region to call the CreateTicket operation. After you obtain the ticket, you can use the ticket regardless of the region.

  • The validity period for the URL of the console page that you want to embed. Unit: seconds. Default value: 86400 (one day). Valid values: 0 to 2592000 (30 days).

86400

accessTokenExpirationTime

integer

No

  • The validity period of the access token. Unit: seconds. Default value: 86400, which specifies one day. Valid values: 0 to 86400.

  • The validity period of the access token is the smaller value between accessTokenExpirationTime and expirationTime.

  • If you use a Security Token Service (STS) token to call this operation, the validity period of the access token is the smallest value among accessTokenExpirationTime, expirationTime, and the validity period of the STS token.

600

Response elements

Element

Type

Description

Example

object

The returned struct.

ticket

string

The ticket that is used for logon-free access.

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

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.