Menambahkan instance Application Load Balancer (ALB) ke dalam security group.
Deskripsi operasi
-
Secara default, security group tidak tersedia. Untuk menggunakannya, hubungi account manager Anda.
-
Pastikan security group telah dibuat. Untuk informasi selengkapnya tentang cara membuat security group, lihat CreateSecurityGroup.
-
Setiap instance ALB dapat ditambahkan ke maksimal empat security group.
-
Untuk mengkueri security group yang terkait dengan suatu instance ALB, panggil operasi GetLoadBalancerAttribute.
-
Operasi GetLoadBalancerAttribute bersifat asinkron. Setelah permintaan dikirim, sistem mengembalikan ID permintaan dan menjalankan tugas di latar belakang. Anda dapat memanggil operasi ListAsynJobs untuk mengkueri status tugas tersebut.
Jika status tugas adalah Succeeded, instance ALB telah berhasil ditambahkan ke security group.
Jika status tugas adalah Processing, instance ALB sedang dalam proses penambahan ke security group. Dalam hal ini, Anda dapat mengkueri status tugas, tetapi tidak dapat melakukan operasi lain.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:LoadBalancerJoinSecurityGroup |
none |
*LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SecurityGroupIds |
array |
Yes |
ID security group. |
|
|
string |
No |
ID security group. |
sg-m5e7xkprgt1pi1ik**** |
|
| LoadBalancerId |
string |
Yes |
ID instans ALB. |
alb-h7kcw4g4nnvtqp**** |
| DryRun |
boolean |
No |
Menentukan apakah hanya akan melakukan dry run tanpa menjalankan permintaan sebenarnya. Nilai yang valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan request ID sebagai client token. Request ID mungkin berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426655440000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil tugas. |
||
| JobId |
string |
ID tugas asinkron. |
8fe81f25-79a0-4fa0-9036-f2601fda**** |
| RequestId |
string |
ID permintaan. |
D3B9AE45-F5DB-58E3-A4B5-EE58F1EC**** |
Contoh
Respons sukses
JSONformat
{
"JobId": "8fe81f25-79a0-4fa0-9036-f2601fda****",
"RequestId": "D3B9AE45-F5DB-58E3-A4B5-EE58F1EC****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.LoadBalancer | The status of %s [%s] is incorrect. | |
| 400 | ResourceAlreadyAssociated.SecurityGroup | The specified resource of %s is already associated. | |
| 400 | ResourceQuotaExceeded.SecurityGroupNum | The quota of %s is exceeded for resource %s, usage %s/%s. | |
| 400 | OperationDenied.SecurityGroupNotSupport | The operation is not allowed because of %s. | |
| 400 | OperationDenied.LbAssociatedAclCanNotJoinSecurityGroup | The operation is not allowed because of loadBalancer associated acl can not join security group. | This operation is not allowed because the listener under the Server Load Balancer instance has been bound to an access control policy. You are not allowed to join the security group again. |
| 404 | ResourceNotFound.LoadBalancer | The specified resource %s is not found. | The specified resource %s is not found. |
| 404 | ResourceNotFound.SecurityGroup | The specified resource %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.