Mengubah informasi tentang host. Informasi mencakup alamat, nama, dan deskripsi host serta sistem operasi yang dijalankan host.
Deskripsi operasi
You can call the ModifyHost operation to modify the basic information about a host in a data center, an Elastic Compute Service (ECS) instance, or a host in an ApsaraDB MyBase dedicated cluster.
The basic information about ECS instances and hosts in ApsaraDB MyBase dedicated clusters within your Alibaba Cloud account is synchronized to Bastionhost on a regular basis. After you modify the basic information about an ECS instance or a host in an ApsaraDB MyBase dedicated cluster, the modification result may be overwritten by the synchronized information.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ModifyHost |
update |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID Host Bastion tempat Anda ingin mengubah informasi tentang host. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID Host Bastion. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID Wilayah Host Bastion tempat Anda ingin mengubah informasi tentang host. Catatan
Untuk informasi lebih lanjut tentang Pemetaan antara ID wilayah dan nama wilayah, lihat Wilayah dan zona. |
cn-hangzhou |
| HostId |
string |
Yes |
ID host. Catatan
Anda dapat memanggil operasi ListHosts untuk mengkueri ID host. |
1 |
| HostPrivateAddress |
string |
No |
Titik akhir internal baru host. Anda dapat mengatur parameter ini ke Nama domain atau alamat IP. |
193.168.XX.XX |
| HostPublicAddress |
string |
No |
Titik akhir publik baru host. Anda dapat mengatur parameter ini ke Nama domain atau alamat IP. |
200.1.XX.XX |
| OSType |
string |
No |
Sistem operasi baru host. Nilai valid:
|
Linux |
| HostName |
string |
No |
Nama baru host. Panjang nama maksimal 128 karakter. |
TestHost |
| Comment |
string |
No |
Deskripsi baru host. Panjang deskripsi maksimal 500 karakter. |
Host for test. |
| NetworkDomainId |
string |
No |
ID domain jaringan baru tempat host berada. Catatan
Anda dapat memanggil operasi ListNetworkDomains untuk mengkueri ID domain jaringan. |
1 |
| PrefKex |
string |
No |
Algoritma pertukaran kunci yang dipilih untuk host. Jika Anda mengatur OSType ke Linux, Anda dapat mengubah parameter ini. Nilai valid:
|
default |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 400 | HostNotFound | The host is not found. | |
| 500 | InternalError | An unknown error occurred. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.