Mengubah kata sandi VNC instans ECS.
Deskripsi operasi
Kata sandi harus memiliki panjang enam karakter dan hanya boleh berisi huruf besar, huruf kecil, dan angka.
- Setelah Anda mengubah kata sandi:
Kata sandi baru langsung berlaku pada instans yang dioptimalkan I/O. Anda tidak perlu memulai ulang instans tersebut.
Untuk instans yang tidak dioptimalkan I/O, Anda harus memulai ulang instans di konsol atau memanggil operasi RebootInstance agar kata sandi baru berlaku.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:ModifyInstanceVncPasswd |
update |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans. |
i-bp67acfmxazb4ph**** |
| RegionId |
string |
Yes |
Wilayah tempat instans ECS berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| VncPassword |
string |
Yes |
Kata sandi baru yang digunakan untuk masuk ke instans melalui VNC. |
Ecs123 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Respons error
JSONformat
{
"RequestId": "E69EF3CC-94CD-42E7-8926-F133B86387C0",
"HostId": "ecs.aliyuncs.com",
"Code": "IncorrectInstanceStatus",
"Message": "The current status of the resource does not support this operation."
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectVncPassword.Malformed | The specified parameter VncPassword is not valid. | |
| 403 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | |
| 403 | InstanceNotReady | Temporarily unable to connect the specified instance,please try later. | |
| 404 | InvalidInstanceId.NotFound | The specified InstanceId does not exist. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist. | |
| 404 | NoSuchResource | The specified resource is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.