- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- InstancesTruncateLogRequest
- TruncateLogContext
- Examples
- Try it!
Truncate MySQL general and slow query log tables MySQL only.
HTTP request
POST https://sqladmin.googleapis.com/v1/projects/{project}/instances/{instance}/truncateLog
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Project ID of the Cloud SQL project. |
instance |
Cloud SQL instance ID. This does not include the project ID. |
Request body
The request body contains an instance of InstancesTruncateLogRequest
.
Response body
If successful, the response body contains an instance of Operation
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/sqlservice.admin
For more information, see the Authentication Overview.
InstancesTruncateLogRequest
Instance truncate log request.
JSON representation |
---|
{
"truncateLogContext": {
object ( |
Fields | |
---|---|
truncateLogContext |
Contains details about the truncate log operation. |
TruncateLogContext
Database Instance truncate log context.
JSON representation |
---|
{ "kind": string, "logType": string } |
Fields | |
---|---|
kind |
This is always |
logType |
The type of log to truncate. Valid values are |