Mengubah konfigurasi boot. Operasi ini hanya mendukung instans heterogen (PCFarm bare metal).
Deskripsi operasi
-
Anda tidak dapat mengatur ulang kata sandi instans saat status instans adalah Starting.
-
Anda tidak dapat mengubah kata sandi instans saat status instans adalah Running.
-
Setelah Anda mengatur ulang kata sandi, mulai ulang instans di Konsol atau panggil operasi RebootInstance agar perubahan berlaku. Memulai ulang instans dari dalam sistem operasi tidak akan berlaku.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:ModifyInstanceBootConfiguration |
update |
*Semua sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans yang akan diubah. Hanya satu instans yang dapat ditentukan. |
i-Instans**** |
| BootType |
string |
Yes |
Tipe boot. Pengujian telah mengonfirmasi bahwa nilai disk dapat pass parameter. Nilai contoh asli pxe mengembalikan Parameter.Invalid. Nilai lainnya belum dikonfirmasi. |
disk |
| BootSet |
string |
No |
Mode boot. |
legacy |
| DiskSet |
string |
No |
Apakah proses boot bergantung pada disk. |
on |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Tanggapan. |
||
| RequestId |
string |
ID permintaan. |
6666C5A5-75ED-422E-A022-7121FA18C968 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "6666C5A5-75ED-422E-A022-7121FA18C968"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InstanceNotFound | Instance not found, please check the InstanceId. | |
| 400 | Parameter.Invalid | The parameter is invalid. Please check your parameters and try it again. | |
| 400 | IncorrectInstanceStatus | The current status of the instance does not support this operation. | |
| 400 | InvalidInstanceType.NotSupported | The specified InstanceType is not Supported. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.