Menambahkan Instans Application Load Balancer (ALB) ke grup keamanan.
Deskripsi operasi
-
By default, security groups are unavailable. To use security groups, contact your account manager.
-
Make sure that a security group is created. For more information about how to create security groups, see CreateSecurityGroup.
-
Each ALB instance can be added to at most four security groups.
-
To query the security groups of an ALB instance, call the GetLoadBalancerAttribute operation.
-
GetLoadBalancerAttribute is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the ListAsynJobs operation to query the status of the task.
If the task is in the Succeeded state, the ALB instance is added to the security group.
If the task is in the Processing state, the ALB instance is being added to the security group. In this case, you can query the task but cannot perform other operations.
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 grup keamanan. |
|
|
string |
No |
The security group ID. |
sg-m5e7xkprgt1pi1ik**** |
|
| LoadBalancerId |
string |
Yes |
ID Instans ALB. |
alb-h7kcw4g4nnvtqp**** |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run saja, tanpa menjalankan permintaan aktual. Nilai valid:
|
false |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan ID permintaan sebagai token klien. ID permintaan mungkin berbeda untuk setiap permintaan. |
123e4567-e89b-12d3-a456-426655440000 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The task result. |
||
| JobId |
string |
The ID of the asynchronous task. |
8fe81f25-79a0-4fa0-9036-f2601fda**** |
| RequestId |
string |
The request ID. |
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.