Membuat kelompok pengguna untuk bastion host.
Deskripsi operasi
Creates a user group for a bastion host as an administrator. After creating the group, use the AddUsersToGroup operation to add multiple users at once, enabling centralized user authorization and management.
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-bastionhost:CreateUserGroup |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
ID bastion host tempat Anda ingin membuat kelompok pengguna. Catatan
Anda dapat memanggil operasi DescribeInstances untuk mengkueri ID bastion host. |
bastionhost-cn-st220aw**** |
| RegionId |
string |
No |
ID Wilayah bastion host tempat Anda ingin membuat kelompok pengguna. Catatan
Untuk informasi selengkapnya tentang Pemetaan antara ID Wilayah dan nama wilayah, lihat Regions and zones. |
cn-hangzhou |
| UserGroupName |
string |
Yes |
Nama kelompok pengguna yang ingin Anda buat. Nama ini dapat memiliki panjang hingga 128 karakter. |
group |
| Comment |
string |
No |
Deskripsi kelompok pengguna. Deskripsi dapat memiliki panjang hingga 500 karakter. |
comment |
Semua permintaan 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" di topik ini.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| UserGroupId |
string |
The ID of the user group. |
1 |
| RequestId |
string |
The ID of the request, which is used to locate and troubleshoot issues. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
Contoh
Respons sukses
JSONformat
{
"UserGroupId": "1",
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The argument is invalid. | |
| 400 | UserGroupAlreadyExists | The user group already exists. | |
| 500 | InternalError | An unknown error occurred. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.