You need to enable JavaScript to run this app.
Database Workshop

Database Workshop

Copy page
Download PDF
SQL task
DataSessionKeepAlive
Copy page
Download PDF
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​
​
Name​
Type​
Required?​
Instance value​
Description​
SessionId​
String​
Yes​
MTU4MDg2Mjg2ODg1NTcxNzg4OC8xNTgwODYyODY4ODgwODg3ODA4​
Session ID.​
tip​
You can call the DataConnectInstance API to connect to an instance and obtain the session ID.​
​
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​
​
{​
"ResponseMetadata": {​
"RequestId": "2022101418074701017425118401FBCC69",​
"Action": "DataSessionKeepAlive",​
"Version": "2018-01-01",​
"Service": "dbw",​
"Region": "cn-beijing"​
},​
"Result": {}​
}​
​
Error code​
For details, refer to Error codes.​
Last updated: 2025.10.11 16:24:41