Queries the auto-renewal status of a subscription AnalyticDB for MySQL cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeAutoRenewAttribute |
get |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the cluster. |
cn-hangzhou |
| DBClusterIds |
string |
Yes |
The cluster ID. Separate multiple clusters with commas (,). |
am-bp11q28kvl688**** |
| PageSize |
integer |
No |
The number of entries per page. Valid values:
Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Default value: 1. |
1 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-4690g37929**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalRecordCount |
integer |
The total number of entries returned. |
20 |
| PageRecordCount |
integer |
The number of entries per page. |
30 |
| RequestId |
string |
The request ID. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| PageNumber |
integer |
The page number. |
1 |
| Items |
object |
||
| AutoRenewAttribute |
array<object> |
The renewal information of the cluster. |
|
|
object |
|||
| DBClusterId |
string |
The cluster ID. |
am-bp11q28kvl688**** |
| PeriodUnit |
string |
The unit of the renewal duration. Valid values:
|
Year |
| Duration |
integer |
The renewal duration. |
1 |
| RenewalStatus |
string |
The renewal status of the cluster. Valid values:
|
AutoRenewal |
| AutoRenewEnabled |
boolean |
Whether auto-renewal is enabled for the cluster. Valid values:
|
true |
| RegionId |
string |
The region ID of the cluster. |
cn-hangzhou |
Examples
Success response
JSON format
{
"TotalRecordCount": 20,
"PageRecordCount": 30,
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"PageNumber": 1,
"Items": {
"AutoRenewAttribute": [
{
"DBClusterId": "am-bp11q28kvl688****",
"PeriodUnit": "Year",
"Duration": 1,
"RenewalStatus": "AutoRenewal",
"AutoRenewEnabled": true,
"RegionId": "cn-hangzhou"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.