You can call this operation to query whether auto-renewal is enabled for an ApsaraDB for MongoDB instance.
Operation description
This operation is applicable to subscription instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeInstanceAutoRenewalAttribute |
get |
Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the region ID of the instance. |
cn-hangzhou |
| DBInstanceId |
string |
No |
The ID of the instance. |
dds-bp567b**** |
| DBInstanceType |
string |
No |
The category of the instance. Valid values:
Default value: replicate. |
replicate |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values: 30, 50, and 100. Note
Default value: 30. |
30 |
| PageNumber |
integer |
No |
The number of the page to return. The value must be a positive integer that does not exceed the maximum value of the Integer parameter. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| ItemsNumbers |
integer |
The total number of entries returned. |
2 |
| PageRecordCount |
integer |
The number of entries that were returned on the current page. |
2 |
| RequestId |
string |
The ID of the request. |
FAB5CB3B-DB9D-473A-9DF1-F57B6B9CB949 |
| PageNumber |
integer |
The page number of the returned page. |
1 |
| Items |
object |
||
| Item |
array<object> |
Details about returned entries. |
|
|
object |
|||
| DBInstanceType |
string |
The category of the instance. Valid values:
|
replicate |
| AutoRenew |
string |
Indicates whether auto-renewal is enabled for the instance. Valid values:
|
true |
| Duration |
string |
The auto-renewal period. Unit: months. Note
|
1 |
| DbInstanceId |
string |
The ID of the instance. |
dds-bp2568***** |
| RegionId |
string |
The region ID of the instance. |
cn-hangzhou |
Examples
Success response
JSON format
{
"ItemsNumbers": 2,
"PageRecordCount": 2,
"RequestId": "FAB5CB3B-DB9D-473A-9DF1-F57B6B9CB949",
"PageNumber": 1,
"Items": {
"Item": [
{
"DBInstanceType": "replicate",
"AutoRenew": "true",
"Duration": "1",
"DbInstanceId": "dds-bp2568*****",
"RegionId": "cn-hangzhou"
}
]
}
}
Error response
JSON format
{
"Items": {
"Item": [
{
"Duration": 1,
"RegionId": "cn-shanghai",
"DBInstanceId": "r-xxxxxxxxxxxxxxx",
"AutoRenew": "true"
}
]
},
"TotalRecordCount": 1,
"PageNumber": 1,
"RequestId": "2B17D708-1D6D-49F3-B6D7-478371DDDBE8",
"PageRecordCount": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | An internal error occurred. Please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.