Mengkueri nama akun host yang diberi otorisasi untuk dikelola oleh kelompok pengguna dalam kelompok host.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:ListHostGroupAccountNamesForUserGroup |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion host tempat Anda ingin mengkueri nama akun host yang diberi otorisasi untuk dikelola oleh kelompok pengguna dalam kelompok host. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion host. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID wilayah bastion host tempat Anda ingin mengkueri nama akun host yang diberi otorisasi untuk dikelola oleh kelompok pengguna dalam kelompok host. Catatan
Untuk informasi selengkapnya tentang Pemetaan antara ID wilayah dan nama wilayah, lihat Regions and zones. |
cn-hangzhou |
| UserGroupId |
string |
Yes |
ID kelompok pengguna. Catatan
Anda dapat memanggil operasi ListUserGroups untuk mengkueri ID kelompok pengguna. |
1 |
| HostGroupId |
string |
Yes |
ID kelompok host. Catatan
Anda dapat memanggil operasi ListHostGroups untuk mengkueri ID kelompok host. |
1 |
Semua operasi API Alibaba Cloud harus menyertakan parameter permintaan umum. Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Common parameters. Untuk informasi selengkapnya tentang contoh permintaan, lihat bagian "Examples" pada topik ini.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
| HostAccountNames |
array |
The names of host accounts returned. |
|
|
string |
The name of host account returned. |
["root","abc"] |
Contoh
Respons sukses
JSONformat
{
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE",
"HostAccountNames": [
"[\"root\",\"abc\"]"
]
}
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.