Menetapkan komputer cloud ke pengguna akhir dan menghapus semua pengguna akhir asli komputer cloud.
Deskripsi operasi
The cloud computer must be in the Running state.
After you call this operation, the assignment result is immediately returned. You can call the DescribeDesktops operation to query the assignment of the cloud computer. The value of the
ManagementFlagsresponse parameter indicates the assignment of the cloud computer. A value ofASSIGNINGindicates that the cloud computer is being assigned, and other values indicate that the cloud computer is assigned.We recommend that you check the assignment every 2 to 5 seconds and perform the checks within 50 seconds. Typically, 1 to 5 seconds are required to complete the assignment.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil operasi DescribeRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| DesktopId |
string |
Yes |
ID komputer cloud. |
ecd-7w78ozhjcwa3u**** |
| EndUserId |
array |
No |
ID nama pengguna. Pengguna akhir yang ditentukan oleh parameter ini menjadi pengguna akhir komputer cloud, dan pengguna akhir asli komputer cloud dihapus. Anda dapat menentukan 1 hingga 100 ID. |
alice |
|
string |
No |
The username ID of an end user.
Catatan
If you do not specify this parameter, all original end users of the cloud computer are removed and the cloud computer is not assigned to end users. |
ModifyEntitlement |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Schema of response. |
||
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.