Menambahkan resource ke grup aplikasi.
Deskripsi operasi
Anda dapat menambahkan maksimum 1.000 instance ke grup aplikasi sekaligus. Anda dapat menambahkan maksimum 3.000 instance dari satu layanan Alibaba Cloud ke grup aplikasi. Jumlah total instance yang dapat Anda tambahkan ke grup aplikasi tidak terbatas.
Dalam contoh ini, sebuah instance Elastic Compute Service (ECS) di region China (Hangzhou) ditambahkan ke grup aplikasi 3607****. ID instance adalah i-2ze26xj5wwy12**** dan nama instance adalah test-instance-ecs.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:CreateMonitorGroupInstances |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
string |
Yes |
ID grup aplikasi. |
3607**** |
| Instances |
array<object> |
Yes |
Instance yang ingin Anda tambahkan ke grup aplikasi. |
|
|
object |
No |
Tidak ada. |
||
| InstanceName |
string |
Yes |
Nama instance. |
test-instance-ecs |
| Category |
string |
Yes |
Singkatan nama layanan Alibaba Cloud. Untuk mendapatkan singkatan nama layanan Alibaba Cloud, panggil operasi DescribeProjectMeta. Tag |
ecs |
| InstanceId |
string |
Yes |
ID instance. |
i-2ze26xj5wwy12**** |
| RegionId |
string |
Yes |
ID region instance. |
cn-hangzhou |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode status. Catatan
Kode status 200 menunjukkan bahwa permintaan berhasil. |
200 |
| Message |
string |
Pesan kesalahan. |
The Request is not authorization. |
| RequestId |
string |
ID permintaan. |
1BC69FEB-56CD-4555-A0E2-02536A24A946 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"Code": 200,
"Message": "The Request is not authorization.",
"RequestId": "1BC69FEB-56CD-4555-A0E2-02536A24A946",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidQueryParameter | %s | |
| 401 | AccessDeniedException | You donot have sufficient access to perform this action. | |
| 412 | ResourcesOverLimit | %s | |
| 500 | InternalError | %s | |
| 402 | LimitExceeded | The quota for this customer had been reached. | |
| 403 | InvalidClientTokenId | not allow this operation. | |
| 206 | %s | %s | |
| 404 | ResourceNotFound | %s | |
| 503 | %s | %s | |
| 406 | %s | %s | |
| 429 | Throttli∂ngException | The request was denied due to request throttling. | |
| 409 | %s | %s | |
| 409 | ResourceExist | %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.