Mencantumkan host yang diotorisasi untuk pengguna Resource Access Management (RAM) saat ini untuk melakukan operasi O&M melalui instans Host Bastion.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListOperationHosts |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID instans Host Bastion. Catatan
Panggil operasi DescribeInstances untuk mendapatkan parameter ini. |
bastionhost-cn-09k22avmw0q |
| RegionId |
string |
No |
ID wilayah tempat instans Host Bastion berada. Catatan
Untuk informasi selengkapnya tentang wilayah dan zona, lihat Wilayah dan zona. |
cn-hangzhou |
| PageNumber |
string |
No |
Nomor halaman yang akan dikembalikan. Nilai default adalah 1. |
1 |
| PageSize |
string |
No |
Jumlah entri yang akan dikembalikan pada setiap halaman. Catatan
Tentukan nilai untuk parameter ini. |
20 |
| OSType |
string |
No |
Sistem operasi host. Nilai valid:
|
Linux |
| HostName |
string |
No |
Nama host. Hanya pencocokan persis yang didukung. |
abc |
| HostAddress |
string |
No |
Alamat host. Anda dapat menentukan nama domain atau alamat IP. Hanya pencocokan persis yang didukung. |
10.162.XX.XX |
| Source |
string |
No |
Sumber host. Nilai valid:
|
Local |
| SourceInstanceId |
string |
No |
ID Instance ECS. Hanya pencocokan persis yang didukung. |
i-bp19ienyt0yax748**** |
| SourceInstanceState |
string |
No |
Status host. Nilai valid:
|
Normal |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Hosts |
array<object> |
A list of the hosts. |
|
|
object |
|||
| ActiveAddressType |
string |
The address type of the host.
|
Public |
| Comment |
string |
The comments on the host. |
comment |
| HostId |
string |
The ID of the host. |
1 |
| HostName |
string |
The name of the host. |
host1 |
| HostPrivateAddress |
string |
The private address of the host. |
192.168.XX.XX |
| HostPublicAddress |
string |
The public address of the host. |
10.158.XX.XX |
| OSType |
string |
The operating system of the host.
|
Linux |
| Source |
string |
The source of the host.
|
Local |
| SourceInstanceId |
string |
The ID of the ECS instance. |
i-bp19ienyt0yax748**** |
| SourceInstanceState |
string |
The state of the host.
|
Normal |
| RequestId |
string |
The ID of the request. |
4F6C075F-FC86-476E-943B-097BD4E12948 |
| TotalCount |
integer |
The total number of hosts. |
5 |
Contoh
Respons sukses
JSONformat
{
"Hosts": [
{
"ActiveAddressType": "Public",
"Comment": "comment",
"HostId": "1",
"HostName": "host1",
"HostPrivateAddress": "192.168.XX.XX",
"HostPublicAddress": "10.158.XX.XX",
"OSType": "Linux",
"Source": "Local",
"SourceInstanceId": "i-bp19ienyt0yax748****",
"SourceInstanceState": "Normal"
}
],
"RequestId": "4F6C075F-FC86-476E-943B-097BD4E12948",
"TotalCount": 5
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 500 | InternalError | An unknown error occurred. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.