Menetapkan beberapa cloud computer ke pengguna akhir secara batch.
Deskripsi operasi
-
The cloud computers must be in the Running state.
-
This is an asynchronous operation. To check the assignment status, call and check the
ManagementFlagsparameter. A value ofASSIGNINGindicates that the assignment is in progress; any other value indicates that the assignment is complete. -
Recommended polling interval: 2 to 5 seconds (maximum duration: 50 seconds). The assignment typically takes 1 to 5 seconds to complete.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:BatchModifyEntitlement |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. Anda dapat memanggil operasi DescribeRegions untuk mengkueri wilayah tempat Elastic Desktop Service (EDS) Enterprise tersedia. |
cn-hangzhou |
| MaxUserPerDesktop |
integer |
No |
Jumlah maksimum pengguna yang dapat ditetapkan ke setiap cloud computer. |
1 |
| MaxDesktopPerUser |
integer |
No |
Jumlah maksimum cloud computer yang dapat ditetapkan ke setiap pengguna. |
0 |
| Strategy |
string |
No |
Kebijakan penetapan yang digunakan ketika cloud computer tidak dapat didistribusikan secara merata di antara pengguna. Nilai valid: AVERAGE: Sistem mengutamakan memastikan setiap pengguna ditetapkan setidaknya satu cloud computer. Jika cloud computer yang dipilih tidak dapat didistribusikan secara merata di antara pengguna yang dipilih, sistem tetap menjamin setiap pengguna ditetapkan setidaknya satu cloud computer. CENTRAL: Sistem mengutamakan menetapkan jumlah cloud computer yang ditentukan ke setiap pengguna. Jika cloud computer yang dipilih tidak dapat didistribusikan secara merata di antara pengguna yang dipilih, sistem tetap menjamin setiap pengguna ditetapkan jumlah cloud computer yang ditentukan. Valid values:
|
AVERAGE |
| DesktopId |
array |
Yes |
ID cloud computer yang pengguna akhirnya ingin Anda ubah. |
|
|
string |
No |
The ID of a cloud computer whose end users you want to modify. |
ecd-gx2x1dhsmucyy**** |
|
| EndUserId |
array |
No |
ID pengguna akhir. |
|
|
string |
No |
The ID of the end user. |
Alice |
|
| Preview |
boolean |
Yes |
Apakah akan menampilkan pratinjau hasil penetapan alih-alih menetapkan cloud computer secara aktual. |
true |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
51592A88-0F2C-55E6-AD2C-2AD9C10D**** |
| Entitlements |
object |
The assignment results. |
|
| Status |
string |
The overall status of the assignment task. Valid values:
Valid values:
|
FINISHED |
| TaskId |
string |
The task ID. |
B2F4F018-0EDF-159C-B285-117B5F1C**** |
| AssignModels |
array<object> |
The assignment results for each cloud computer. |
|
|
object |
|||
| DesktopId |
string |
The cloud computer ID. |
ecd-e94kzikmpljjx99pl |
| InnerStatus |
string |
The assign result for each cloud computer. Valid values:
Valid values:
|
FINISHED |
| EndUserIds |
array |
The authorized user IDs for the cloud computer. |
|
|
string |
The authorized user ID for the cloud computer. |
Alice |
Contoh
Respons sukses
JSONformat
{
"RequestId": "51592A88-0F2C-55E6-AD2C-2AD9C10D****",
"Entitlements": {
"Status": "FINISHED",
"TaskId": "B2F4F018-0EDF-159C-B285-117B5F1C****",
"AssignModels": [
{
"DesktopId": "ecd-e94kzikmpljjx99pl",
"InnerStatus": "FINISHED",
"EndUserIds": [
"Alice"
]
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.