Queries the SQL Explorer log retention period for a PolarDB cluster.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Note
You can call the DescribeRegions operation to query the region information of all clusters under the target account. |
cn-hangzhou |
| DBInstanceId |
string |
Yes |
The cluster ID. Note
You can call the DescribeDBClusters operation to query the details of all clusters under your account, such as the cluster ID. |
pc-**************** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ConfigValue |
string |
The retention period of SQL Explorer logs. Valid values:
|
30 |
| DBInstanceID |
integer |
The cluster ID. |
35707295 |
| DBInstanceName |
string |
The cluster name. |
pc-**************** |
| RequestId |
string |
The request ID. |
6A2EE5B4-CC9F-46E1-A747-E43BC9****** |
Examples
Success response
JSON format
{
"ConfigValue": "30",
"DBInstanceID": 35707295,
"DBInstanceName": "pc-****************",
"RequestId": "6A2EE5B4-CC9F-46E1-A747-E43BC9******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidComment | Should specify a policy name. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.