All Products
Search
Document Center

Function Compute:CreateSessionInput

Last Updated:Jul 20, 2026

Parameter

Type

Description

Example

object

The parameters for creating a session.

sessionTTLInSeconds

integer

The session lifetime.

21600

sessionIdleTimeoutInSeconds

integer

The session idle timeout.

1800

nasConfig NASConfig

The NAS configuration. After this parameter is configured, instances associated with the session can access the specified NAS resources.

sessionId

string

The custom session ID. If not specified, the server generates one. If specified, this value is used as the session ID. This parameter applies only to the HEADER_FIELD affinity mode. Format: the length is limited to [0,64]. The first character must be from a-zA-Z0-9_. Subsequent characters can be from a-zA-Z0-9_-.

custom-test-session-id

disableSessionIdReuse

boolean

Default value: False. This indicates that after a session with a specific SessionID expires, you can send requests with the same SessionID. The system treats it as a new session and binds it to a new instance. If set to True, the SessionID cannot be reused after the session expires.

false

ossMountConfig OSSMountConfig

The OSS mount configuration. After this parameter is configured, instances associated with the session can access the specified OSS resources.

polarFsConfig PolarFsConfig

The PolarFs configuration. After this parameter is configured, instances associated with the session can access the specified PolarFs resources.

juiceFsConfig JuiceFsConfig

enableAutoPause

boolean

enableAutoResume

boolean

allowInternetAccess

boolean

network

CreateSessionNetworkConfig