Mengkueri status pembaruan otomatis instans MongoDB.
Deskripsi operasi
This operation is applicable to subscription instances.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeInstanceAutoRenewalAttribute |
get |
Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans. Anda dapat memanggil operasi DescribeDBInstanceAttribute untuk mengkueri ID wilayah instans. |
cn-hangzhou |
| DBInstanceId |
string |
No |
ID instans. |
dds-bp567b**** |
| DBInstanceType |
string |
No |
Kategori instans. Nilai valid:
Nilai default: replicate. |
replicate |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai valid: 30, 50, dan 100. Catatan
Nilai default: 30. |
30 |
| PageNumber |
integer |
No |
Nomor halaman. Nilainya harus berupa bilangan bulat positif yang tidak melebihi nilai maksimum tipe data Integer. Nilai default: 1. |
1 |
Elemen respons
|
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. Catatan
|
1 |
| DbInstanceId |
string |
The ID of the instance. |
dds-bp2568***** |
| RegionId |
string |
The region ID of the instance. |
cn-hangzhou |
Contoh
Respons sukses
JSONformat
{
"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"
}
]
}
}
Respons error
JSONformat
{
"Items": {
"Item": [
{
"Duration": 1,
"RegionId": "cn-shanghai",
"DBInstanceId": "r-xxxxxxxxxxxxxxx",
"AutoRenew": "true"
}
]
},
"TotalRecordCount": 1,
"PageNumber": 1,
"RequestId": "2B17D708-1D6D-49F3-B6D7-478371DDDBE8",
"PageRecordCount": 1
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalError | The request processing has failed due to some unknown error, exception or failure. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.