All Products
Search
Document Center

Simple Log Service:EnableScheduledSQL

Last Updated:Nov 13, 2024

Enables the Scheduled SQL feature.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

PUT /scheduledsqls/{scheduledSQLName}?action=enable HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
projectstringNo

The short description of the struct.

ali-test-project
scheduledSQLNamestringNo

The unique name of the job. Make sure that the job exists.

sql-123456789-123456

Response parameters

ParameterTypeDescriptionExample
headersobject
Datestring

The time when the response was returned.

nginx
x-log-requestidstring

The request ID.

5B0A6B60BB6EE39764D458B5
Connectionstring

Indicates whether the connection is persistent. Valid values: close and keep-alive. close: The connection is non-persistent. A new TCP connection is established for each HTTP request. keep-alive: The connection is persistent. After a TCP connection is established, the connection remains open, and no more time or bandwidth is consumed to establish new connections.

close
Serverstring

The name of the server.

nginx
Content-Lengthstring

The length of the response body.

0
Content-Typestring

The type of the response body.

application/json

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.