Queries the auto-renewal status of subscription PolarDB clusters.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | No | DescribeAutoRenewAttribute | The operation that you want to perform. Set the value to DescribeAutoRenewAttribute. |
| RegionId | String | Yes | cn-hangzhou | The ID of the region. It must be up to 50 characters in length. You can call the DescribeRegions operation to query the most recent region list. |
| DBClusterIds | String | No | pc-**************** | The ID of the cluster. Separate multiple cluster IDs with commas (,). |
| PageSize | Integer | No | 30 | The number of entries to return on each page. Valid values: 30, 50, and 100. Default value: 30. |
| PageNumber | Integer | No | 1 | The number of the page to return. Valid values: 1 to 2147483647. Default value: 1. |
| ResourceGroupId | String | No | rg-re********* | The ID of the resource group. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| Items | Array | The renewal information of the clusters. | |
| AutoRenewAttribute | |||
| AutoRenewEnabled | Boolean | true | Indicates whether the auto-renewal feature is enabled. Valid values:
|
| DBClusterId | String | pc-xxxxxxxxxxxxxxxx | The ID of the cluster. |
| Duration | Integer | 1 | The renewal duration of the subscription cluster. |
| PeriodUnit | String | Month | The unit of the renewal duration. Valid values:
|
| RegionId | String | cn-hangzhou | The region ID of the instance. |
| RenewalStatus | String | AutoRenewal | The renewal status of the cluster. Valid values:
|
| PageNumber | Integer | 1 | The page number of the returned page. |
| PageRecordCount | Integer | 1 | The total number of pages returned. |
| RequestId | String | 8ABD1FF2-85B1-4D03-8C99-FB603B****** | The ID of the request. |
| TotalRecordCount | Integer | 1 | The total number of entries returned. |
Examples
Sample requests
http(s)://polardb.aliyuncs.com/? Action=DescribeAutoRenewAttribute
&RegionId=cn-hangzhou
&<Common request parameters>Sample success responses
XML format
<Items>
<AutoRenewAttribute>
<RenewalStatus>AutoRenewal</RenewalStatus>
<Duration>1</Duration>
<RegionId>cn-hangzhou</RegionId>
<AutoRenewEnabled>true</AutoRenewEnabled>
<PeriodUnit>Month</PeriodUnit>
<DBClusterId>pc-****************</DBClusterId>
</AutoRenewAttribute>
</Items>
<TotalRecordCount>1</TotalRecordCount>
<PageNumber>1</PageNumber>
<RequestId>8ABD1FF2-85B1-4D03-8C99-FB603B******</RequestId>
<PageRecordCount>1</PageRecordCount>JSON format
{
"Items": {
"AutoRenewAttribute": [
{
"RenewalStatus": "AutoRenewal",
"Duration": 1,
"RegionId": "cn-hangzhou",
"AutoRenewEnabled": true,
"PeriodUnit": "Month",
"DBClusterId": "pc-****************"
}
]
},
"TotalRecordCount": 1,
"PageNumber": 1,
"RequestId": "8ABD1FF2-85B1-4D03-8C99-FB603B******",
"PageRecordCount": 1
}Error codes
For a list of error codes, visit the API Error Center.