All Products
Search
Document Center

Function Compute:CreateSessionInput

Last Updated:Jan 12, 2026

Parameter

Type

Description

Example

object

The parameters to create a session.

sessionTTLInSeconds

integer

The time-to-live (TTL) of the session.

21600

sessionIdleTimeoutInSeconds

integer

The idle timeout period for the session.

1800

nasConfig NASConfig

The NAS configuration. After you set this parameter, the instance associated with the session can access the specified NAS resource.

sessionId

string

A custom session ID. If an ID is not provided, the server generates one. This parameter applies only to the HEADER_FIELD affinity pattern. The ID must be 0 to 64 characters long. The first character must be a letter, a digit, or an underscore (a-zA-Z0-9_). Subsequent characters can be letters, digits, underscores, or hyphens (a-zA-Z0-9_-).

custom-test-session-id

disableSessionIdReuse

boolean

The default value is false. If this parameter is set to false, a session ID can be reused to start a new session after the original session expires. The system attaches a new instance to the new session. If this parameter is set to true, an expired session ID cannot be reused.

false

ossMountConfig OSSMountConfig

The OSS configuration. After setting this parameter, the instance associated with the session can access the specified OSS resource.

polarFsConfig PolarFsConfig

The PolarFs configuration. After setting this parameter, the instance associated with the session can access the specified PolarFs resource.