OpenLogSyncToSLS
Enables log synchronization to Simple Log Service (SLS).
Operation description
Central public endpoint:
adb.aliyuncs.com.Regional public endpoint:
adb.<region-id>.aliyuncs.com. Example:adb.cn-hangzhou.aliyuncs.com.Regional VPC endpoint:
adb-vpc.<region-id>.aliyuncs.com. Example:adb-vpc.cn-hangzhou.aliyuncs.com.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
am-bp1ub9grke1**** |
| RegionId |
string |
Yes |
The region ID. |
cn-beijing |
| TargetProject |
string |
Yes |
The Simple Log Service project. |
log-service-****-cn-shenzhen |
| TargetLogStore |
string |
Yes |
The Simple Log Service LogStore. |
adbmysql-audit-log |
| LogType |
string |
No |
The log type. Valid values:
Default value: |
ADBMYSQL_AUDIT_LOG |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
Examples
Success response
JSON format
{
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.