All Products
Search
Document Center

PolarDB:DescribeSQLExplorerRetention

Last Updated:Nov 04, 2026

Queries the SQL Explorer log retention period for a PolarDB cluster.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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: 30 days.

  • 180: 180 days.

  • 365: 1 year.

  • 1095: 3 years.

  • 1825: 5 years.

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.