- Documentation
Database Workshop
API reference
SQL task
DataSessionKeepAlive
SQL task
DataSessionKeepAlive
DataSessionKeepAlive
Call the DataSessionKeepAlive API to maintain the session.
tip
When your session has no statements initiated for 5 minutes, the session will be released automatically. You can call the DataSessionKeepAlive API before the session is released to reset the automatic release time of the session to 5 minutes later. If you need to maintain the session for a long time, you need to call this API cyclically within a 5-minute interval.
Request type
Synchronize request.
Request parameters
Response parameters
None
Request example
POST /?Action=DataSessionKeepAlive&Version=2018-01-01 HTTP/1.1
Content-Type: application/json
Host: dbw.cn-beijing.volcengineapi.com
Authorization: HMAC-SHA256 Credential=AKLTN2I0MmFiNzMxNWE5NDgzMzk4MmVjMTVkODlkZTZ****/20211202/cn-beijing/dbw/request,SignedHeaders=x-date, Signature=71d31fc7bcf990142851c9833c5656391486cda0ae2e0b8ada733b7c645****
"SessionId": "MTU4MDg2Mjg2ODg1NTcxNzg4OC8xNTgwODYyODY4ODgwODg3ODA4"
Response example
"RequestId": "2022101418074701017425118401FBCC69",
"Action": "DataSessionKeepAlive",
"Version": "2018-01-01",
Error code
Last updated: 2025.10.11 16:24:41