Memanggil DescribeInstanceMaintenanceAttributes untuk mengkueri atribut pemeliharaan instans.
Deskripsi operasi
Mengkueri kebijakan pemeliharaan yang dikonfigurasi. Kebijakan terutama mencakup dua atribut pemeliharaan.
Jendela pemeliharaan: periode pengatur waktu yang Anda tentukan, selama operasi pemeliharaan dilakukan.
Aksi pemeliharaan: kebijakan penanganan mati yang Anda tentukan untuk instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeInstanceMaintenanceAttributes |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah instans. Anda dapat memanggil DescribeRegions untuk Tampilan daftar wilayah Alibaba Cloud terbaru. |
cn-hangzhou |
| PageNumber |
integer |
No |
Nomor halaman daftar atribut pemeliharaan. Nilai awal: 1 Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. Nilai valid: 1 hingga 100. Nilai default: 10. |
10 |
| InstanceId |
array |
No |
Daftar ID instans. Anda dapat menentukan hingga 100 ID instans. |
i-bp67acfmxazb4p**** |
|
string |
No |
ID instans |
i-bp67acfmxazb4p**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
Jumlah entri yang dikembalikan per halaman. |
10 |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PageNumber |
integer |
Nomor halaman daftar atribut pemeliharaan. |
1 |
| TotalCount |
integer |
Jumlah total atribut pemeliharaan yang dikueri. |
100 |
| MaintenanceAttributes |
object |
||
| MaintenanceAttribute |
array<object> |
Kumpulan atribut pemeliharaan. |
|
|
array<object> |
|||
| NotifyOnMaintenance |
boolean |
Indicates whether an event notification was sent before maintenance. |
false |
| InstanceId |
string |
The instance ID. |
i-bp67acfmxazb4p**** |
| MaintenanceWindows |
object |
||
| MaintenanceWindow |
array<object> |
The maintenance windows. |
|
|
object |
|||
| EndTime |
string |
The end time of the maintenance window. |
18:00:00 |
| StartTime |
string |
The start time of the maintenance window. |
02:00:00 |
| ActionOnMaintenance |
object |
The attributes of the maintenance action of the instance. |
|
| DefaultValue |
string |
The default maintenance action. |
AutoRecover |
| Value |
string |
The current maintenance action. Valid values:
|
Stop |
| SupportedValues |
object |
||
| SupportedValue |
array |
The supported maintenance actions. |
|
|
string |
The supported maintenance action. |
Stop |
Contoh
Respons sukses
JSONformat
{
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"PageNumber": 1,
"TotalCount": 100,
"MaintenanceAttributes": {
"MaintenanceAttribute": [
{
"NotifyOnMaintenance": false,
"InstanceId": "i-bp67acfmxazb4p****",
"MaintenanceWindows": {
"MaintenanceWindow": [
{
"EndTime": "18:00:00",
"StartTime": "02:00:00"
}
]
},
"ActionOnMaintenance": {
"DefaultValue": "AutoRecover",
"Value": "Stop",
"SupportedValues": {
"SupportedValue": [
"Stop"
]
}
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | %s | |
| 403 | InvalidParameter | %s | |
| 403 | InstanceIdLimitExceeded | %s | |
| 403 | OperationDenied.NotInWhiteList | %s | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.