Bir Uygulama Yük Dengeleyici (ALB) örneğini bir güvenlik grubuna ekler.
Operation description
-
Varsayılan olarak güvenlik grupları kullanılamaz. Güvenlik gruplarını kullanmak için hesap yöneticinizle iletişime geçin.
-
Bir güvenlik grubunun oluşturulduğundan emin olun. Güvenlik gruplarının nasıl oluşturulacağı hakkında daha fazla bilgi için CreateSecurityGroup bölümüne bakın.
-
Her ALB örneği en fazla dört güvenlik grubuna eklenebilir.
-
Bir ALB örneğinin güvenlik gruplarını sorgulamak için GetLoadBalancerAttribute işlemini çağırın.
-
GetLoadBalancerAttribute eşzamansız bir işlemdir. Bir istek gönderildikten sonra sistem bir istek kimliği döndürür ve görevi arka planda çalıştırır. Görevin durumunu sorgulamak için ListAsynJobs işlemini çağırabilirsiniz.
Görev Succeeded durumundaysa, ALB örneği güvenlik grubuna eklenmiştir.
Görev Processing durumundaysa, ALB örneği güvenlik grubuna eklenmektedir. Bu durumda görevi sorgulayabilir ancak başka işlem gerçekleştiremezsiniz.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alb:LoadBalancerJoinSecurityGroup |
none |
*LoadBalancer
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SecurityGroupIds |
array |
Yes |
Güvenlik grubu kimlikleri. |
|
|
string |
No |
Güvenlik grubu kimliği. |
sg-m5e7xkprgt1pi1ik**** |
|
| LoadBalancerId |
string |
Yes |
ALB örnek kimliği. |
alb-h7kcw4g4nnvtqp**** |
| DryRun |
boolean |
No |
Yalnızca deneme çalıştırması yapılıp yapılmayacağını ve gerçek isteğin gerçekleştirilip gerçekleştirilmeyeceğini belirtir. Geçerli değerler:
|
false |
| ClientToken |
string |
No |
İsteğin idempotansını sağlamak için kullanılan istemci belirteci. Belirteci oluşturmak için istemciyi kullanabilirsiniz, ancak belirtecin farklı istekler arasında benzersiz olduğundan emin olmalısınız. Belirteç yalnızca ASCII karakterleri içerebilir. Not
Bu parametreyi belirtmezseniz, sistem otomatik olarak istemci belirteci olarak istek kimliğini kullanır. İstek kimliği her istek için farklı olabilir. |
123e4567-e89b-12d3-a456-426655440000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Görev sonucu. |
||
| JobId |
string |
Eşzamansız görevin kimliği. |
8fe81f25-79a0-4fa0-9036-f2601fda**** |
| RequestId |
string |
İstek kimliği. |
D3B9AE45-F5DB-58E3-A4B5-EE58F1EC**** |
Examples
Success response
JSON format
{
"JobId": "8fe81f25-79a0-4fa0-9036-f2601fda****",
"RequestId": "D3B9AE45-F5DB-58E3-A4B5-EE58F1EC****"
}
Error codes
|
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.