CreateSessionInput

Updated at:

Parameter

Type

Description

Example

object

The parameters for creating a session.

sessionTTLInSeconds

integer

The session TTL.

21600

sessionIdleTimeoutInSeconds

integer

The session idle timeout.

1800

nasConfig NASConfig

The NAS configuration. If configured, the instance associated with the session can access specified NAS resources.

sessionId

string

The custom session ID. If not configured, it is generated by the server. If configured, this value is used as the session ID. This parameter is only applicable to the HEADER_FIELD affinity mode. Format requirements: The length is limited to 0 to 64 characters. The first character must be a-zA-Z0-9_, and subsequent characters can be a-zA-Z0-9_-.

custom-test-session-id

disableSessionIdReuse

boolean

The default value is False, which indicates that after a session expires, you can continue to send requests with the same session ID, and the system treats it as a new session and binds it to a new instance. If set to True, the session ID cannot be reused after the session expires.

false

ossMountConfig OSSMountConfig

The OSS configuration. If configured, the instance associated with the session can access specified OSS resources.

polarFsConfig PolarFsConfig

The PolarFS configuration. If configured, the instance associated with the session can access specified PolarFS resources.

juiceFsConfig JuiceFsConfig

The JuiceFS mount configuration.

enableAutoPause

boolean

enableAutoResume

boolean

allowInternetAccess

boolean

network CreateSessionNetworkConfig

snapshotId

string

autoPauseFileSystemOnly

boolean

The autoPause feature saves only the file system.

pausedExpirationSeconds

integer

The deep sleep retention period in seconds.

86400

snapshotExpirationSeconds

integer

The user snapshot retention period in seconds.

604800